Class: FsApi::Resource::Invoice
- Inherits:
-
Object
- Object
- FsApi::Resource::Invoice
- Extended by:
- ClassMethods
- Includes:
- FsApi::Resource
- Defined in:
- lib/fs_api/resource/invoice.rb
Instance Attribute Summary
Attributes included from ClassMethods
#attributes, #nillable_attributes
Attributes included from FsApi::Resource
Instance Method Summary collapse
- #path ⇒ Object
- #saved? ⇒ Boolean
-
#updateable? ⇒ Boolean
invoices cannot be updated.
Methods included from ClassMethods
has_attributes, has_boolean_attributes, has_datetime_attributes, has_nillable_attributes
Methods included from FsApi::Resource
#from_api=, #initialize, #persisted?, #to_json
Instance Method Details
#path ⇒ Object
59 60 61 |
# File 'lib/fs_api/resource/invoice.rb', line 59 def path persisted? ? "/#{id}" : "" end |
#saved? ⇒ Boolean
63 64 65 |
# File 'lib/fs_api/resource/invoice.rb', line 63 def saved? !datesaved.nil? && datesaved != '' end |
#updateable? ⇒ Boolean
invoices cannot be updated
68 69 70 |
# File 'lib/fs_api/resource/invoice.rb', line 68 def updateable? false end |