Class: Io::Flow::V0::Models::ReturnSourceExternalVendor
- Inherits:
-
ReturnSource
- Object
- ReturnSource
- Io::Flow::V0::Models::ReturnSourceExternalVendor
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Attributes inherited from ReturnSource
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ReturnSourceExternalVendor
constructor
A new instance of ReturnSourceExternalVendor.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from ReturnSource
Constructor Details
#initialize(incoming = {}) ⇒ ReturnSourceExternalVendor
Returns a new instance of ReturnSourceExternalVendor.
48932 48933 48934 48935 48936 48937 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 48932 def initialize(incoming={}) super(:discriminator => ReturnSource::Types::RETURN_SOURCE_EXTERNAL_VENDOR) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:key], 'ReturnSourceExternalVendor') @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String) end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
48930 48931 48932 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 48930 def key @key end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
48943 48944 48945 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 48943 def copy(incoming={}) ReturnSourceExternalVendor.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
48947 48948 48949 48950 48951 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 48947 def subtype_to_hash { :key => key } end |
#to_json ⇒ Object
48939 48940 48941 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 48939 def to_json JSON.dump(to_hash) end |