Class: Io::Flow::V0::Models::ShopifyMerchantApplicationsSummary
- Inherits:
-
MerchantApplicationsSummary
- Object
- MerchantApplicationsSummary
- Io::Flow::V0::Models::ShopifyMerchantApplicationsSummary
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Attributes inherited from MerchantApplicationsSummary
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ShopifyMerchantApplicationsSummary
constructor
A new instance of ShopifyMerchantApplicationsSummary.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from MerchantApplicationsSummary
Constructor Details
#initialize(incoming = {}) ⇒ ShopifyMerchantApplicationsSummary
Returns a new instance of ShopifyMerchantApplicationsSummary.
68102 68103 68104 68105 68106 68107 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 68102 def initialize(incoming={}) super(:discriminator => MerchantApplicationsSummary::Types::SHOPIFY_MERCHANT_APPLICATIONS_SUMMARY) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:total], 'ShopifyMerchantApplicationsSummary') @total = HttpClient::Preconditions.assert_class('total', opts.delete(:total), Integer) end |
Instance Attribute Details
#total ⇒ Object (readonly)
Returns the value of attribute total.
68100 68101 68102 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 68100 def total @total end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
68113 68114 68115 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 68113 def copy(incoming={}) ShopifyMerchantApplicationsSummary.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
68117 68118 68119 68120 68121 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 68117 def subtype_to_hash { :total => total } end |
#to_json ⇒ Object
68109 68110 68111 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 68109 def to_json JSON.dump(to_hash) end |