Class: Beanie::NominalAccountCategory

Inherits:
Api
  • Object
show all
Defined in:
lib/beanie/nominal_account_category.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#initializeNominalAccountCategory

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

#idObject

Returns the value of attribute id.



32
33
34
# File 'lib/beanie/nominal_account_category.rb', line 32

def id
  @id
end

#na_typeObject

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

#nameObject

Returns the value of attribute name.



32
33
34
# File 'lib/beanie/nominal_account_category.rb', line 32

def name
  @name
end

#parent_category_idObject

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_nameObject

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