Class: Io::Flow::V0::Models::AuthorizationResultDescription
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::AuthorizationResultDescription
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#display ⇒ Object
readonly
Returns the value of attribute display.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ AuthorizationResultDescription
constructor
A new instance of AuthorizationResultDescription.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ AuthorizationResultDescription
Returns a new instance of AuthorizationResultDescription.
18607 18608 18609 18610 18611 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18607 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:display], 'AuthorizationResultDescription') @display = HttpClient::Preconditions.assert_class('display', opts.delete(:display), String) end |
Instance Attribute Details
#display ⇒ Object (readonly)
Returns the value of attribute display.
18605 18606 18607 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18605 def display @display end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
18617 18618 18619 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18617 def copy(incoming={}) AuthorizationResultDescription.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
18621 18622 18623 18624 18625 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18621 def to_hash { :display => display } end |
#to_json ⇒ Object
18613 18614 18615 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18613 def to_json JSON.dump(to_hash) end |