Class: Moyasar::STCPay
Instance Attribute Summary collapse
-
#branch ⇒ Object
readonly
Returns the value of attribute branch.
-
#cashier ⇒ Object
readonly
Returns the value of attribute cashier.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#mobile ⇒ Object
readonly
Returns the value of attribute mobile.
-
#reference_number ⇒ Object
readonly
Returns the value of attribute reference_number.
-
#transaction_url ⇒ Object
readonly
Returns the value of attribute transaction_url.
Instance Method Summary collapse
Methods inherited from Source
Methods included from Actions::Construct
Instance Attribute Details
#branch ⇒ Object (readonly)
Returns the value of attribute branch.
3 4 5 |
# File 'lib/moyasar/sources/stc_pay.rb', line 3 def branch @branch end |
#cashier ⇒ Object (readonly)
Returns the value of attribute cashier.
3 4 5 |
# File 'lib/moyasar/sources/stc_pay.rb', line 3 def cashier @cashier end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/moyasar/sources/stc_pay.rb', line 3 def @message end |
#mobile ⇒ Object (readonly)
Returns the value of attribute mobile.
3 4 5 |
# File 'lib/moyasar/sources/stc_pay.rb', line 3 def mobile @mobile end |
#reference_number ⇒ Object (readonly)
Returns the value of attribute reference_number.
3 4 5 |
# File 'lib/moyasar/sources/stc_pay.rb', line 3 def reference_number @reference_number end |
#transaction_url ⇒ Object (readonly)
Returns the value of attribute transaction_url.
3 4 5 |
# File 'lib/moyasar/sources/stc_pay.rb', line 3 def transaction_url @transaction_url end |
Instance Method Details
#==(other) ⇒ Object
5 6 7 8 |
# File 'lib/moyasar/sources/stc_pay.rb', line 5 def ==(other) return unless other.instance_of? STCPay [:mobile, :reference_number, :branch, :cashier, :reference_number, :transaction_url, :message].all? { |attr| self.send(attr) == other.send(attr) } end |