Class: VertexClient::Payload::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/vertex_client/payloads/base.rb

Direct Known Subclasses

Quotation, TaxArea

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Base

Returns a new instance of Base.



8
9
10
11
# File 'lib/vertex_client/payloads/base.rb', line 8

def initialize(params)
  @params = params.with_indifferent_access
  validate!
end

Instance Attribute Details

#paramsObject (readonly)

Returns the value of attribute params.



6
7
8
# File 'lib/vertex_client/payloads/base.rb', line 6

def params
  @params
end

Instance Method Details

#transformObject



13
14
15
16
17
# File 'lib/vertex_client/payloads/base.rb', line 13

def transform
  {
    request_key => body
  }
end