Class: V2Intuity::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/v2_intuity/request.rb

Constant Summary collapse

METHODS =
{ get: 'get', put: 'put', post: 'post', delete: 'delete' }.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Request

Returns a new instance of Request.



6
7
8
9
10
# File 'lib/v2_intuity/request.rb', line 6

def initialize(options = {})
  @method = options[:method]
  @uri = options[:uri]
  @options = options[:options]
end

Instance Attribute Details

#methodObject

Returns the value of attribute method.



4
5
6
# File 'lib/v2_intuity/request.rb', line 4

def method
  @method
end

#optionsObject

Returns the value of attribute options.



4
5
6
# File 'lib/v2_intuity/request.rb', line 4

def options
  @options
end

#uriObject

Returns the value of attribute uri.



4
5
6
# File 'lib/v2_intuity/request.rb', line 4

def uri
  @uri
end