Class: Elmas::Document
- Inherits:
-
Object
- Object
- Elmas::Document
- Includes:
- Resource
- Defined in:
- lib/elmas/resources/document.rb
Instance Attribute Summary
Attributes included from Resource
Instance Method Summary collapse
Methods included from Resource
#delete, #find, #find_all, #find_by, #get, #id, #id?, #initialize, #method_missing, #save, #valid?
Methods included from Resource::Sanitizer
#sanitize, #sanitize_date_time, #sanitize_has_many, #sanitize_relationship
Methods included from Resource::UriMethods
#apply_filters, #apply_order, #apply_select, #base_filter, #basic_identifier_uri, #query_attribute, #sanitize_value, #uri
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Elmas::Resource
Instance Method Details
#base_path ⇒ Object
5 6 7 |
# File 'lib/elmas/resources/document.rb', line 5 def base_path "documents/Documents" end |
#mandatory_attributes ⇒ Object
9 10 11 |
# File 'lib/elmas/resources/document.rb', line 9 def mandatory_attributes [:subject, :type] end |
#other_attributes ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/elmas/resources/document.rb', line 13 def other_attributes [ :account, :amount_FC, :body, :category, :category_description, :creator_full_name, :currency, :document_date, :document_folder, :financial_transaction_entry_ID, :HID, :language, :opportunity, :sales_invoice_number, :shop_order_number ] end |