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.
23675 23676 23677 23678 23679 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23675 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.
23673 23674 23675 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23673 def display @display end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
23685 23686 23687 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23685 def copy(incoming={}) AuthorizationResultDescription.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
23689 23690 23691 23692 23693 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23689 def to_hash { :display => display } end |
#to_json ⇒ Object
23681 23682 23683 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23681 def to_json JSON.dump(to_hash) end |