Class: Io::Flow::V0::Models::ShopifyMerchantApplicationsSummary

Inherits:
MerchantApplicationsSummary show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Attributes inherited from MerchantApplicationsSummary

#discriminator

Instance Method Summary collapse

Methods inherited from MerchantApplicationsSummary

from_json, #to_hash

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

#totalObject (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_hashObject



68117
68118
68119
68120
68121
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 68117

def subtype_to_hash
  {
    :total => total
  }
end

#to_jsonObject



68109
68110
68111
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 68109

def to_json
  JSON.dump(to_hash)
end