Class: Vnpay::OrderInfo
- Inherits:
-
Object
- Object
- Vnpay::OrderInfo
- Defined in:
- lib/vnpay/order_info.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#description ⇒ Object
Returns the value of attribute description.
-
#order_type ⇒ Object
Returns the value of attribute order_type.
-
#payment_ref ⇒ Object
Returns the value of attribute payment_ref.
Instance Method Summary collapse
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
3 4 5 |
# File 'lib/vnpay/order_info.rb', line 3 def amount @amount end |
#created_at ⇒ Object
Returns the value of attribute created_at.
3 4 5 |
# File 'lib/vnpay/order_info.rb', line 3 def created_at @created_at end |
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/vnpay/order_info.rb', line 3 def description @description end |
#order_type ⇒ Object
Returns the value of attribute order_type.
3 4 5 |
# File 'lib/vnpay/order_info.rb', line 3 def order_type @order_type end |
#payment_ref ⇒ Object
Returns the value of attribute payment_ref.
3 4 5 |
# File 'lib/vnpay/order_info.rb', line 3 def payment_ref @payment_ref end |
Instance Method Details
#valid? ⇒ Boolean
9 10 11 12 13 |
# File 'lib/vnpay/order_info.rb', line 9 def valid? [:order_type, :payment_ref, :amount, :description, :created_at].map do |attribute| !!send(attribute) end.all? end |