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