Class: Io::Flow::V0::Models::SyncRecordForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::SyncRecordForm
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#stream_key ⇒ Object
readonly
Returns the value of attribute stream_key.
-
#system ⇒ Object
readonly
Returns the value of attribute system.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ SyncRecordForm
constructor
A new instance of SyncRecordForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ SyncRecordForm
Returns a new instance of SyncRecordForm.
52491 52492 52493 52494 52495 52496 52497 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 52491 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:stream_key, :system, :value], 'SyncRecordForm') @stream_key = HttpClient::Preconditions.assert_class('stream_key', opts.delete(:stream_key), String) @system = HttpClient::Preconditions.assert_class('system', opts.delete(:system), String) @value = HttpClient::Preconditions.assert_class('value', opts.delete(:value), String) end |
Instance Attribute Details
#stream_key ⇒ Object (readonly)
Returns the value of attribute stream_key.
52489 52490 52491 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 52489 def stream_key @stream_key end |
#system ⇒ Object (readonly)
Returns the value of attribute system.
52489 52490 52491 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 52489 def system @system end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
52489 52490 52491 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 52489 def value @value end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
52503 52504 52505 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 52503 def copy(incoming={}) SyncRecordForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
52507 52508 52509 52510 52511 52512 52513 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 52507 def to_hash { :stream_key => stream_key, :system => system, :value => value } end |
#to_json ⇒ Object
52499 52500 52501 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 52499 def to_json JSON.dump(to_hash) end |