Class: Fortnox::CostCenter

Inherits:
Resource show all
Defined in:
lib/fortnox/resources/cost_center.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from Resource

build_objects, create, #endpoint, endpoint, fetch, #initialize, perform_request, relation, relations, search, #to_hash, #to_json, #update

Constructor Details

This class inherits a constructor from Fortnox::Resource

Instance Attribute Details

#activeObject

Returns the value of attribute active.



3
4
5
# File 'lib/fortnox/resources/cost_center.rb', line 3

def active
  @active
end

#codeObject

Returns the value of attribute code.



3
4
5
# File 'lib/fortnox/resources/cost_center.rb', line 3

def code
  @code
end

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/fortnox/resources/cost_center.rb', line 3

def description
  @description
end

#noteObject

Returns the value of attribute note.



3
4
5
# File 'lib/fortnox/resources/cost_center.rb', line 3

def note
  @note
end