Class: Cocainum::ApiRequest
- Inherits:
-
Object
- Object
- Cocainum::ApiRequest
- Defined in:
- lib/cocainum/api.rb
Instance Attribute Summary collapse
-
#accept ⇒ Object
Returns the value of attribute accept.
-
#action ⇒ Object
Returns the value of attribute action.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#method ⇒ Object
Returns the value of attribute method.
-
#request ⇒ Object
Returns the value of attribute request.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ ApiRequest
constructor
A new instance of ApiRequest.
Constructor Details
#initialize ⇒ ApiRequest
10 11 12 13 |
# File 'lib/cocainum/api.rb', line 10 def initialize @accept = :json @version = '' end |
Instance Attribute Details
#accept ⇒ Object
Returns the value of attribute accept.
8 9 10 |
# File 'lib/cocainum/api.rb', line 8 def accept @accept end |
#action ⇒ Object
Returns the value of attribute action.
8 9 10 |
# File 'lib/cocainum/api.rb', line 8 def action @action end |
#content_type ⇒ Object
Returns the value of attribute content_type.
8 9 10 |
# File 'lib/cocainum/api.rb', line 8 def content_type @content_type end |
#method ⇒ Object
Returns the value of attribute method.
8 9 10 |
# File 'lib/cocainum/api.rb', line 8 def method @method end |
#request ⇒ Object
Returns the value of attribute request.
8 9 10 |
# File 'lib/cocainum/api.rb', line 8 def request @request end |
#version ⇒ Object
Returns the value of attribute version.
8 9 10 |
# File 'lib/cocainum/api.rb', line 8 def version @version end |