Class: NetRegistry::Transaction
- Inherits:
-
Object
- Object
- NetRegistry::Transaction
- Defined in:
- lib/net_registry/transaction.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#bank_reference ⇒ Object
Returns the value of attribute bank_reference.
-
#command ⇒ Object
Returns the value of attribute command.
-
#merchant_id ⇒ Object
Returns the value of attribute merchant_id.
-
#number ⇒ Object
Returns the value of attribute number.
-
#receipt ⇒ Object
Returns the value of attribute receipt.
-
#reference ⇒ Object
Returns the value of attribute reference.
-
#rrn ⇒ Object
Returns the value of attribute rrn.
-
#settlement_date ⇒ Object
Returns the value of attribute settlement_date.
-
#time ⇒ Object
Returns the value of attribute time.
Instance Method Summary collapse
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
27 28 29 |
# File 'lib/net_registry/transaction.rb', line 27 def amount @amount end |
#bank_reference ⇒ Object
Returns the value of attribute bank_reference.
27 28 29 |
# File 'lib/net_registry/transaction.rb', line 27 def bank_reference @bank_reference end |
#command ⇒ Object
Returns the value of attribute command.
27 28 29 |
# File 'lib/net_registry/transaction.rb', line 27 def command @command end |
#merchant_id ⇒ Object
Returns the value of attribute merchant_id.
27 28 29 |
# File 'lib/net_registry/transaction.rb', line 27 def merchant_id @merchant_id end |
#number ⇒ Object
Returns the value of attribute number.
27 28 29 |
# File 'lib/net_registry/transaction.rb', line 27 def number @number end |
#receipt ⇒ Object
Returns the value of attribute receipt.
27 28 29 |
# File 'lib/net_registry/transaction.rb', line 27 def receipt @receipt end |
#reference ⇒ Object
Returns the value of attribute reference.
27 28 29 |
# File 'lib/net_registry/transaction.rb', line 27 def reference @reference end |
#rrn ⇒ Object
Returns the value of attribute rrn.
27 28 29 |
# File 'lib/net_registry/transaction.rb', line 27 def rrn @rrn end |
#settlement_date ⇒ Object
Returns the value of attribute settlement_date.
27 28 29 |
# File 'lib/net_registry/transaction.rb', line 27 def settlement_date @settlement_date end |
#time ⇒ Object
Returns the value of attribute time.
27 28 29 |
# File 'lib/net_registry/transaction.rb', line 27 def time @time end |
Instance Method Details
#card ⇒ Object
43 44 45 |
# File 'lib/net_registry/transaction.rb', line 43 def card @card ||= NetRegistry::Card.new end |
#card=(card) ⇒ Object
38 39 40 41 |
# File 'lib/net_registry/transaction.rb', line 38 def card=(card) raise TypeError, "Invalid class" if !card.is_a? NetRegistry::Card @card = card end |