Class: Moyasar::Sadad

Inherits:
Source
  • Object
show all
Defined in:
lib/moyasar/sources/sadad.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Source

build

Methods included from Actions::Construct

included

Instance Attribute Details

#error_codeObject (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

#messageObject (readonly)

Returns the value of attribute message.



3
4
5
# File 'lib/moyasar/sources/sadad.rb', line 3

def message
  @message
end

#transaction_idObject (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_urlObject (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

#usernameObject (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