Sha256: ffc606e09cb2418c9fd5ba4927919103663cd6ffb3e86b1fb460aef2a7fa3619
Contents?: true
Size: 897 Bytes
Versions: 14
Compression:
Stored size: 897 Bytes
Contents
module DwollaSwagger # class Amount < BaseObject attr_accessor :value, :currency # attribute mapping from ruby-style variable name to JSON key def self.attribute_map { # :'value' => :'value', # :'currency' => :'currency' } end # attribute type def self.swagger_types { :'value' => :'string', :'currency' => :'string' } end def initialize(attributes = {}) return if !attributes.is_a?(Hash) || attributes.empty? # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'value'] @value = attributes[:'value'] end if attributes[:'currency'] @currency = attributes[:'currency'] end end end end
Version data entries
14 entries across 14 versions & 1 rubygems