Class: Vnpay::OrderInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/vnpay/order_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



3
4
5
# File 'lib/vnpay/order_info.rb', line 3

def amount
  @amount
end

#created_atObject

Returns the value of attribute created_at.



3
4
5
# File 'lib/vnpay/order_info.rb', line 3

def created_at
  @created_at
end

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/vnpay/order_info.rb', line 3

def description
  @description
end

#order_typeObject

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_refObject

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

Returns:

  • (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