Class: GMoney::GFRequest
- Inherits:
-
Object
- Object
- GMoney::GFRequest
- Defined in:
- lib/gmoney/gf_request.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#method ⇒ Object
Returns the value of attribute method.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, options = {}) ⇒ GFRequest
constructor
A new instance of GFRequest.
Constructor Details
#initialize(url, options = {}) ⇒ GFRequest
Returns a new instance of GFRequest.
5 6 7 8 9 10 11 12 13 |
# File 'lib/gmoney/gf_request.rb', line 5 def initialize(url, = {}) @url = url .each do |key, value| self.send("#{key}=", value) end @method ||= :get @headers ||= {} end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
3 4 5 |
# File 'lib/gmoney/gf_request.rb', line 3 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers.
3 4 5 |
# File 'lib/gmoney/gf_request.rb', line 3 def headers @headers end |
#method ⇒ Object
Returns the value of attribute method.
3 4 5 |
# File 'lib/gmoney/gf_request.rb', line 3 def method @method end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/gmoney/gf_request.rb', line 3 def url @url end |