Class: Moyasar::Invoice
- Includes:
- Actions::Create
- Defined in:
- lib/moyasar/invoice.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#amount_format ⇒ Object
readonly
Returns the value of attribute amount_format.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#payments ⇒ Object
readonly
Returns the value of attribute payments.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
Methods included from Actions::Create
Methods inherited from Resource
class_name, resource_name, resource_url
Methods included from Actions::Cancel
Methods included from Actions::Update
Methods included from Actions::Fetch
Methods included from Actions::List
Methods included from Actions::Construct
Methods included from Actions::Request
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
6 7 8 |
# File 'lib/moyasar/invoice.rb', line 6 def amount @amount end |
#amount_format ⇒ Object (readonly)
Returns the value of attribute amount_format.
5 6 7 |
# File 'lib/moyasar/invoice.rb', line 5 def amount_format @amount_format end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
5 6 7 |
# File 'lib/moyasar/invoice.rb', line 5 def created_at @created_at end |
#currency ⇒ Object
Returns the value of attribute currency.
6 7 8 |
# File 'lib/moyasar/invoice.rb', line 6 def currency @currency end |
#description ⇒ Object
Returns the value of attribute description.
6 7 8 |
# File 'lib/moyasar/invoice.rb', line 6 def description @description end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/moyasar/invoice.rb', line 5 def id @id end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
5 6 7 |
# File 'lib/moyasar/invoice.rb', line 5 def @metadata end |
#payments ⇒ Object (readonly)
Returns the value of attribute payments.
5 6 7 |
# File 'lib/moyasar/invoice.rb', line 5 def payments @payments end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/moyasar/invoice.rb', line 5 def status @status end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
5 6 7 |
# File 'lib/moyasar/invoice.rb', line 5 def updated_at @updated_at end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
5 6 7 |
# File 'lib/moyasar/invoice.rb', line 5 def url @url end |
Instance Method Details
#==(other) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/moyasar/invoice.rb', line 8 def ==(other) return false unless other.is_a? Invoice [:id, :status, :description, :amount, :currency, :url, :created_at, :updated_at].all? do |attr| self.send(attr) == other.send(attr) end end |