Class: Cocainum::ApiRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/cocainum/api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeApiRequest



10
11
12
13
# File 'lib/cocainum/api.rb', line 10

def initialize
  @accept = :json
  @version = ''
end

Instance Attribute Details

#acceptObject

Returns the value of attribute accept.



8
9
10
# File 'lib/cocainum/api.rb', line 8

def accept
  @accept
end

#actionObject

Returns the value of attribute action.



8
9
10
# File 'lib/cocainum/api.rb', line 8

def action
  @action
end

#content_typeObject

Returns the value of attribute content_type.



8
9
10
# File 'lib/cocainum/api.rb', line 8

def content_type
  @content_type
end

#methodObject

Returns the value of attribute method.



8
9
10
# File 'lib/cocainum/api.rb', line 8

def method
  @method
end

#requestObject

Returns the value of attribute request.



8
9
10
# File 'lib/cocainum/api.rb', line 8

def request
  @request
end

#versionObject

Returns the value of attribute version.



8
9
10
# File 'lib/cocainum/api.rb', line 8

def version
  @version
end