Class: Conexa::BillSubcategory
- Inherits:
-
Model
- Object
- ConexaObject
- Model
- Conexa::BillSubcategory
- Defined in:
- lib/conexa/resources/bill_subcategory.rb
Overview
BillSubcategory resource (Subcategoria de Despesa)
Constant Summary
Constants inherited from ConexaObject
Instance Attribute Summary collapse
-
#bill_category_id ⇒ Integer
readonly
Parent bill category ID.
-
#bill_subcategory_id ⇒ Integer
readonly
Bill subcategory ID (also accessible as #id).
-
#is_active ⇒ Boolean
readonly
Whether the subcategory is active.
-
#name ⇒ String
readonly
Subcategory name.
Attributes inherited from ConexaObject
Class Method Summary collapse
Methods inherited from Model
all, #class_name, class_name, #create, create, #destroy, destroy, extract_page_size_or_params, #fetch, find_by, find_by_id, #id, #primary_key, primary_key_attribute, #primary_key_name, #save, #set_primary_key, underscored_class_name
Methods inherited from ConexaObject
#==, #[]=, convert, #empty?, #initialize, #respond_to_missing?, #to_hash, #unsaved_attributes
Constructor Details
This class inherits a constructor from Conexa::ConexaObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Conexa::ConexaObject
Instance Attribute Details
#bill_category_id ⇒ Integer (readonly)
Returns Parent bill category ID.
22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/conexa/resources/bill_subcategory.rb', line 22 class BillSubcategory < Model primary_key_attribute :bill_subcategory_id class << self def url(*params) ["/billSubcategories", *params].join '/' end def show_url(*params) ["/billSubcategory", *params].join '/' end end end |
#bill_subcategory_id ⇒ Integer (readonly)
Returns Bill subcategory ID (also accessible as #id).
22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/conexa/resources/bill_subcategory.rb', line 22 class BillSubcategory < Model primary_key_attribute :bill_subcategory_id class << self def url(*params) ["/billSubcategories", *params].join '/' end def show_url(*params) ["/billSubcategory", *params].join '/' end end end |
#is_active ⇒ Boolean (readonly)
Returns Whether the subcategory is active.
22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/conexa/resources/bill_subcategory.rb', line 22 class BillSubcategory < Model primary_key_attribute :bill_subcategory_id class << self def url(*params) ["/billSubcategories", *params].join '/' end def show_url(*params) ["/billSubcategory", *params].join '/' end end end |
#name ⇒ String (readonly)
Returns Subcategory name.
22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/conexa/resources/bill_subcategory.rb', line 22 class BillSubcategory < Model primary_key_attribute :bill_subcategory_id class << self def url(*params) ["/billSubcategories", *params].join '/' end def show_url(*params) ["/billSubcategory", *params].join '/' end end end |
Class Method Details
.show_url(*params) ⇒ Object
30 31 32 |
# File 'lib/conexa/resources/bill_subcategory.rb', line 30 def show_url(*params) ["/billSubcategory", *params].join '/' end |
.url(*params) ⇒ Object
26 27 28 |
# File 'lib/conexa/resources/bill_subcategory.rb', line 26 def url(*params) ["/billSubcategories", *params].join '/' end |