Class: WebPay::ChargeFeeResponse

Inherits:
Entity
  • Object
show all
Defined in:
lib/webpay/data_types.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#normalize_hash, #to_h, #to_s

Constructor Details

#initialize(hash = {}) ⇒ ChargeFeeResponse

Returns a new instance of ChargeFeeResponse.



310
311
312
313
# File 'lib/webpay/data_types.rb', line 310

def initialize(hash = {})
  hash = normalize_hash(hash)
  @attributes = hash
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



303
304
305
# File 'lib/webpay/data_types.rb', line 303

def attributes
  @attributes
end

Class Method Details

.fieldsObject



305
306
307
# File 'lib/webpay/data_types.rb', line 305

def self.fields
  ['object', 'transaction_type', 'transaction_fee', 'rate', 'amount', 'created']
end

Instance Method Details

#amountObject



334
335
336
# File 'lib/webpay/data_types.rb', line 334

def amount
  attributes['amount']
end

#createdObject



338
339
340
# File 'lib/webpay/data_types.rb', line 338

def created
  attributes['created']
end

#objectObject

attributes accessors



318
319
320
# File 'lib/webpay/data_types.rb', line 318

def object
  attributes['object']
end

#rateObject



330
331
332
# File 'lib/webpay/data_types.rb', line 330

def rate
  attributes['rate']
end

#transaction_feeObject



326
327
328
# File 'lib/webpay/data_types.rb', line 326

def transaction_fee
  attributes['transaction_fee']
end

#transaction_typeObject



322
323
324
# File 'lib/webpay/data_types.rb', line 322

def transaction_type
  attributes['transaction_type']
end