Class: WebPay::ChargeFeeResponse
- Inherits:
-
Entity
- Object
- Entity
- WebPay::ChargeFeeResponse
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
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
#attributes ⇒ Object
Returns the value of attribute attributes.
394
395
396
|
# File 'lib/webpay/data_types.rb', line 394
def attributes
@attributes
end
|
Class Method Details
.fields ⇒ Object
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
#amount ⇒ Object
425
426
427
|
# File 'lib/webpay/data_types.rb', line 425
def amount
attributes['amount']
end
|
#created ⇒ Object
429
430
431
|
# File 'lib/webpay/data_types.rb', line 429
def created
attributes['created']
end
|
#object ⇒ Object
409
410
411
|
# File 'lib/webpay/data_types.rb', line 409
def object
attributes['object']
end
|
#rate ⇒ Object
421
422
423
|
# File 'lib/webpay/data_types.rb', line 421
def rate
attributes['rate']
end
|
#transaction_fee ⇒ Object
417
418
419
|
# File 'lib/webpay/data_types.rb', line 417
def transaction_fee
attributes['transaction_fee']
end
|
#transaction_type ⇒ Object
413
414
415
|
# File 'lib/webpay/data_types.rb', line 413
def transaction_type
attributes['transaction_type']
end
|