Class: Moyasar::STCPay

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Source

build

Methods included from Actions::Construct

included

Instance Attribute Details

#branchObject (readonly)

Returns the value of attribute branch.



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

def branch
  @branch
end

#cashierObject (readonly)

Returns the value of attribute cashier.



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

def cashier
  @cashier
end

#messageObject (readonly)

Returns the value of attribute message.



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

def message
  @message
end

#mobileObject (readonly)

Returns the value of attribute mobile.



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

def mobile
  @mobile
end

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