Class: Beanie::NominalAccountCategory
- Defined in:
- lib/beanie/nominal_account_category.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#na_type ⇒ Object
Returns the value of attribute na_type.
-
#name ⇒ Object
Returns the value of attribute name.
-
#parent_category_id ⇒ Object
Returns the value of attribute parent_category_id.
Instance Method Summary collapse
-
#initialize ⇒ NominalAccountCategory
constructor
Initialize instance variables.
-
#type_name ⇒ Object
Show proper name for type.
Methods inherited from Api
all, build_url, #construct_path, delete, #extract, #field_name, find, get, #object_name, #populate, post, put, #save!, set_headers
Constructor Details
#initialize ⇒ NominalAccountCategory
Initialize instance variables
36 37 38 39 40 41 |
# File 'lib/beanie/nominal_account_category.rb', line 36 def initialize @id = nil @na_type = nil @name = nil @parent_category_id = nil end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
32 33 34 |
# File 'lib/beanie/nominal_account_category.rb', line 32 def id @id end |
#na_type ⇒ Object
Returns the value of attribute na_type.
32 33 34 |
# File 'lib/beanie/nominal_account_category.rb', line 32 def na_type @na_type end |
#name ⇒ Object
Returns the value of attribute name.
32 33 34 |
# File 'lib/beanie/nominal_account_category.rb', line 32 def name @name end |
#parent_category_id ⇒ Object
Returns the value of attribute parent_category_id.
32 33 34 |
# File 'lib/beanie/nominal_account_category.rb', line 32 def parent_category_id @parent_category_id end |
Instance Method Details
#type_name ⇒ Object
Show proper name for type
45 46 47 |
# File 'lib/beanie/nominal_account_category.rb', line 45 def type_name NominalAccount::TYPE_NAMES[na_type][0] end |