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.
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
#attributes ⇒ Object
Returns the value of attribute attributes.
303
304
305
|
# File 'lib/webpay/data_types.rb', line 303
def attributes
@attributes
end
|
Class Method Details
.fields ⇒ Object
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
#amount ⇒ Object
334
335
336
|
# File 'lib/webpay/data_types.rb', line 334
def amount
attributes['amount']
end
|
#created ⇒ Object
338
339
340
|
# File 'lib/webpay/data_types.rb', line 338
def created
attributes['created']
end
|
#object ⇒ Object
318
319
320
|
# File 'lib/webpay/data_types.rb', line 318
def object
attributes['object']
end
|
#rate ⇒ Object
330
331
332
|
# File 'lib/webpay/data_types.rb', line 330
def rate
attributes['rate']
end
|
#transaction_fee ⇒ Object
326
327
328
|
# File 'lib/webpay/data_types.rb', line 326
def transaction_fee
attributes['transaction_fee']
end
|
#transaction_type ⇒ Object
322
323
324
|
# File 'lib/webpay/data_types.rb', line 322
def transaction_type
attributes['transaction_type']
end
|