Class: Beanie::Company

Inherits:
Api
  • Object
show all
Defined in:
lib/beanie/company.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

#initializeCompany

Initialize instance variables



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/beanie/company.rb', line 42

def initialize
  @id = nil
  @name = nil
  @email = nil
  @address1 = nil
  @address2 = nil
  @address3 = nil
  @city = nil
  @state_county = nil
  @website = nil
  @phone = nil
  @fax = nil
  @zip_postcode = nil
  @registration = nil
  @next_fye = nil
  @country = nil
  @currency = nil
  @invoice_template_id = nil
  @purchase_shipping_nominal_account_id = nil
  @sales_shipping_nominal_account_id = nil
  @accounts_receivable_nominal_account_id = nil
  @accounts_payable_nominal_account_id = nil
end

Instance Attribute Details

#accounts_payable_nominal_account_idObject

Returns the value of attribute accounts_payable_nominal_account_id.



38
39
40
# File 'lib/beanie/company.rb', line 38

def 
  @accounts_payable_nominal_account_id
end

#accounts_receivable_nominal_account_idObject

Returns the value of attribute accounts_receivable_nominal_account_id.



37
38
39
# File 'lib/beanie/company.rb', line 37

def 
  @accounts_receivable_nominal_account_id
end

#address1Object

Returns the value of attribute address1.



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

def address1
  @address1
end

#address2Object

Returns the value of attribute address2.



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

def address2
  @address2
end

#address3Object

Returns the value of attribute address3.



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

def address3
  @address3
end

#cityObject

Returns the value of attribute city.



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

def city
  @city
end

#countryObject

Returns the value of attribute country.



34
35
36
# File 'lib/beanie/company.rb', line 34

def country
  @country
end

#currencyObject

Returns the value of attribute currency.



34
35
36
# File 'lib/beanie/company.rb', line 34

def currency
  @currency
end

#emailObject

Returns the value of attribute email.



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

def email
  @email
end

#faxObject

Returns the value of attribute fax.



33
34
35
# File 'lib/beanie/company.rb', line 33

def fax
  @fax
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#invoice_template_idObject

Returns the value of attribute invoice_template_id.



35
36
37
# File 'lib/beanie/company.rb', line 35

def invoice_template_id
  @invoice_template_id
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#next_fyeObject

Returns the value of attribute next_fye.



34
35
36
# File 'lib/beanie/company.rb', line 34

def next_fye
  @next_fye
end

#phoneObject

Returns the value of attribute phone.



33
34
35
# File 'lib/beanie/company.rb', line 33

def phone
  @phone
end

#purchase_shipping_nominal_account_idObject

Returns the value of attribute purchase_shipping_nominal_account_id.



35
36
37
# File 'lib/beanie/company.rb', line 35

def 
  @purchase_shipping_nominal_account_id
end

#registrationObject

Returns the value of attribute registration.



34
35
36
# File 'lib/beanie/company.rb', line 34

def registration
  @registration
end

#sales_shipping_nominal_account_idObject

Returns the value of attribute sales_shipping_nominal_account_id.



36
37
38
# File 'lib/beanie/company.rb', line 36

def 
  @sales_shipping_nominal_account_id
end

#state_countyObject

Returns the value of attribute state_county.



33
34
35
# File 'lib/beanie/company.rb', line 33

def state_county
  @state_county
end

#websiteObject

Returns the value of attribute website.



33
34
35
# File 'lib/beanie/company.rb', line 33

def website
  @website
end

#zip_postcodeObject

Returns the value of attribute zip_postcode.



33
34
35
# File 'lib/beanie/company.rb', line 33

def zip_postcode
  @zip_postcode
end