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