Class: Cequens::Request

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

Constant Summary collapse

DEFAULT_OPTIONS =
{}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action, params, opts) ⇒ Request

Returns a new instance of Request.



9
10
11
12
13
14
15
# File 'lib/cequens/request.rb', line 9

def initialize(action, params, opts)
  @action = action
  @params = params
  @options = DEFAULT_OPTIONS.merge(opts)

  build_request
end

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



7
8
9
# File 'lib/cequens/request.rb', line 7

def action
  @action
end

#optionsObject (readonly)

Returns the value of attribute options.



7
8
9
# File 'lib/cequens/request.rb', line 7

def options
  @options
end

#paramsObject (readonly)

Returns the value of attribute params.



7
8
9
# File 'lib/cequens/request.rb', line 7

def params
  @params
end

#requestObject (readonly)

Returns the value of attribute request.



7
8
9
# File 'lib/cequens/request.rb', line 7

def request
  @request
end