Class: Io::Flow::V0::Models::ActionWait
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#expires_at ⇒ Object
readonly
Returns the value of attribute expires_at.
Attributes inherited from Action
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ActionWait
constructor
A new instance of ActionWait.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from Action
Constructor Details
#initialize(incoming = {}) ⇒ ActionWait
Returns a new instance of ActionWait.
25719 25720 25721 25722 25723 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25719 def initialize(incoming={}) super(:type => Action::Types::ACTION_WAIT) opts = HttpClient::Helper.symbolize_keys(incoming) @expires_at = (x = opts.delete(:expires_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('expires_at', HttpClient::Helper.to_date_time_iso8601(x), DateTime)) end |
Instance Attribute Details
#expires_at ⇒ Object (readonly)
Returns the value of attribute expires_at.
25717 25718 25719 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25717 def expires_at @expires_at end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
25729 25730 25731 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25729 def copy(incoming={}) ActionWait.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
25733 25734 25735 25736 25737 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25733 def subtype_to_hash { :expires_at => expires_at } end |
#to_json ⇒ Object
25725 25726 25727 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25725 def to_json JSON.dump(to_hash) end |