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.



401
402
403
404
# File 'lib/webpay/data_types.rb', line 401

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

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



394
395
396
# File 'lib/webpay/data_types.rb', line 394

def attributes
  @attributes
end

Class Method Details

.fieldsObject



396
397
398
# File 'lib/webpay/data_types.rb', line 396

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

Instance Method Details

#amountObject



425
426
427
# File 'lib/webpay/data_types.rb', line 425

def amount
  attributes['amount']
end

#createdObject



429
430
431
# File 'lib/webpay/data_types.rb', line 429

def created
  attributes['created']
end

#objectObject

attributes accessors



409
410
411
# File 'lib/webpay/data_types.rb', line 409

def object
  attributes['object']
end

#rateObject



421
422
423
# File 'lib/webpay/data_types.rb', line 421

def rate
  attributes['rate']
end

#transaction_feeObject



417
418
419
# File 'lib/webpay/data_types.rb', line 417

def transaction_fee
  attributes['transaction_fee']
end

#transaction_typeObject



413
414
415
# File 'lib/webpay/data_types.rb', line 413

def transaction_type
  attributes['transaction_type']
end