Class: Elmas::Project
- Inherits:
-
Object
- Object
- Elmas::Project
- Includes:
- Resource
- Defined in:
- lib/elmas/resources/project.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/project.rb', line 5 def base_path "project/Projects" end |
#mandatory_attributes ⇒ Object
9 10 11 |
# File 'lib/elmas/resources/project.rb', line 9 def mandatory_attributes [:account, :description, :code, :type] end |
#other_attributes ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/elmas/resources/project.rb', line 14 def other_attributes # rubocop:disable Metrics/MethodLength [ :account, :account_code, :AccountContact, :account_name, :allow_additional_invoicing, :block_entry, :block_rebilling, :budgeted_amount, :budgeted_costs, :budgeted_hours_per_hour_type, :BudgetedRevenue, :BudgetType, :BudgetTypeDescription, :clasification, :classification_description, :code, :costs_amount_fc, :created, :creator, :creator_full_name, :customer_p_onumber, :description, :division, :division_name, :end_date, :fixed_price_item, :fixed_price_item_description, :invoice_as_quoted, :invoice_terms, :manager, :manager_fullname, :markup_percentage, :modified, :modifier, :modifier_full_name, :notes, :prepaid_item, :prepaid_item_description, :prepaid_type, :prepaid_type_description, :project_restriction_employees, :project_restriction_items, :project_restriction_rebillings, :sales_time_quantity, :source_quotation, :start_date, :time_quantity_to_alert, :type, :type_description, :use_billing_milestones ] end |