class Beaver::TransactionsSummarySummaries
TransactionsSummarySummaries
Model.
Attributes
currency[RW]
TODO: Write general description for this method @return [CurrencyEnum]
fee_type[RW]
TODO: Write general description for this method @return [FeeTypeEnum]
item_count[RW]
TODO: Write general description for this method @return [Integer]
total_amount[RW]
TODO: Write general description for this method @return [Integer]
Public Class Methods
from_hash(hash)
click to toggle source
Creates an instance of the object from a hash.
# File lib/beaver/models/transactions_summary_summaries.rb, line 46 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. fee_type = hash['fee_type'] currency = hash['currency'] total_amount = hash['total_amount'] item_count = hash['item_count'] # Create object from extracted values. TransactionsSummarySummaries.new(fee_type, currency, total_amount, item_count) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/beaver/models/transactions_summary_summaries.rb, line 26 def self.names @_hash = {} if @_hash.nil? @_hash['fee_type'] = 'fee_type' @_hash['currency'] = 'currency' @_hash['total_amount'] = 'total_amount' @_hash['item_count'] = 'item_count' @_hash end
new(fee_type = nil, currency = nil, total_amount = nil, item_count = nil)
click to toggle source
# File lib/beaver/models/transactions_summary_summaries.rb, line 35 def initialize(fee_type = nil, currency = nil, total_amount = nil, item_count = nil) @fee_type = fee_type @currency = currency @total_amount = total_amount @item_count = item_count end