Class: Elmas::SalesItemPrices

Inherits:
Object
  • Object
show all
Includes:
Resource
Defined in:
lib/elmas/resources/sales_item_prices.rb

Instance Attribute Summary

Attributes included from Resource

#attributes, #response, #url

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_pathObject



5
6
7
# File 'lib/elmas/resources/sales_item_prices.rb', line 5

def base_path
  "logistics/SalesItemPrices"
end

#mandatory_attributesObject



9
# File 'lib/elmas/resources/sales_item_prices.rb', line 9

def mandatory_attributes; end

#other_attributesObject



11
12
13
14
15
16
17
# File 'lib/elmas/resources/sales_item_prices.rb', line 11

def other_attributes
  [
    :account, :account_name, :created, :creator, :creator_full_name, :currency, :default_item_unit, :default_item_unit_description,
    :division, :end_date, :item, :item_code, :item_description, :modified, :modifier, :modifier_full_name, :number_of_items_per_unit,
    :price, :quantity, :start_date, :unit, :unit_description
  ]
end