class FbookGraph::Request
Attributes
response[RW]
Attributes
Public Class Methods
new(**options)
click to toggle source
Constructor
# File lib/fbook_graph/request.rb, line 7 def initialize(**options) url = Configuration::BASE_URL uri = URI(url) uri.query = URI.encode_www_form(options) @response = Net::HTTP.get(uri) end
Public Instance Methods
parsed_response()
click to toggle source
Instance Methods
# File lib/fbook_graph/request.rb, line 16 def parsed_response JSON.parse(response) end