Class: Fortnox::Voucher

Inherits:
Resource show all
Defined in:
lib/fortnox/resources/voucher.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

#commentsObject

Returns the value of attribute comments.



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

def comments
  @comments
end

#cost_centerObject

Returns the value of attribute cost_center.



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

def cost_center
  @cost_center
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#projectObject

Returns the value of attribute project.



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

def project
  @project
end

#reference_numberObject

Returns the value of attribute reference_number.



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

def reference_number
  @reference_number
end

#reference_typeObject

Returns the value of attribute reference_type.



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

def reference_type
  @reference_type
end

#transaction_dateObject

Returns the value of attribute transaction_date.



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

def transaction_date
  @transaction_date
end

#voucher_numberObject

Returns the value of attribute voucher_number.



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

def voucher_number
  @voucher_number
end

#voucher_rowsObject

Returns the value of attribute voucher_rows.



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

def voucher_rows
  @voucher_rows
end

#voucher_seriesObject

Returns the value of attribute voucher_series.



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

def voucher_series
  @voucher_series
end

#yearObject

Returns the value of attribute year.



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

def year
  @year
end