Class: Io::Flow::V0::Models::SyncStreamSettingsForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::SyncStreamSettingsForm
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#error_after ⇒ Object
readonly
Returns the value of attribute error_after.
-
#pending_record_after ⇒ Object
readonly
Returns the value of attribute pending_record_after.
-
#warn_after ⇒ Object
readonly
Returns the value of attribute warn_after.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ SyncStreamSettingsForm
constructor
A new instance of SyncStreamSettingsForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ SyncStreamSettingsForm
Returns a new instance of SyncStreamSettingsForm.
51920 51921 51922 51923 51924 51925 51926 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51920 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:pending_record_after, :warn_after, :error_after], 'SyncStreamSettingsForm') @pending_record_after = (x = opts.delete(:pending_record_after); x.is_a?(::Io::Flow::V0::Models::SyncDuration) ? x : ::Io::Flow::V0::Models::SyncDuration.new(x)) @warn_after = (x = opts.delete(:warn_after); x.is_a?(::Io::Flow::V0::Models::SyncDuration) ? x : ::Io::Flow::V0::Models::SyncDuration.new(x)) @error_after = (x = opts.delete(:error_after); x.is_a?(::Io::Flow::V0::Models::SyncDuration) ? x : ::Io::Flow::V0::Models::SyncDuration.new(x)) end |
Instance Attribute Details
#error_after ⇒ Object (readonly)
Returns the value of attribute error_after.
51918 51919 51920 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51918 def error_after @error_after end |
#pending_record_after ⇒ Object (readonly)
Returns the value of attribute pending_record_after.
51918 51919 51920 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51918 def pending_record_after @pending_record_after end |
#warn_after ⇒ Object (readonly)
Returns the value of attribute warn_after.
51918 51919 51920 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51918 def warn_after @warn_after end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
51932 51933 51934 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51932 def copy(incoming={}) SyncStreamSettingsForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
51936 51937 51938 51939 51940 51941 51942 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51936 def to_hash { :pending_record_after => pending_record_after.to_hash, :warn_after => warn_after.to_hash, :error_after => error_after.to_hash } end |
#to_json ⇒ Object
51928 51929 51930 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51928 def to_json JSON.dump(to_hash) end |