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.
29124 29125 29126 29127 29128 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29124 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.
29122 29123 29124 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29122 def display @display end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
29134 29135 29136 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29134 def copy(incoming={}) AuthorizationResultDescription.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
29138 29139 29140 29141 29142 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29138 def to_hash { :display => display } end |
#to_json ⇒ Object
29130 29131 29132 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29130 def to_json JSON.dump(to_hash) end |