Class: TripletexRubyClient::AppSpecific

Inherits:
Object
  • Object
show all
Defined in:
lib/tripletex_ruby_client/models/app_specific.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ AppSpecific

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 157

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  if attributes.has_key?(:'hourRegistrationEnabled')
    self.hour_registration_enabled = attributes[:'hourRegistrationEnabled']
  end

  if attributes.has_key?(:'projectEnabled')
    self.project_enabled = attributes[:'projectEnabled']
  end

  if attributes.has_key?(:'departmentEnabled')
    self.department_enabled = attributes[:'departmentEnabled']
  end

  if attributes.has_key?(:'userIsAllowedToRegisterHours')
    self.user_is_allowed_to_register_hours = attributes[:'userIsAllowedToRegisterHours']
  end

  if attributes.has_key?(:'payrollAccountingEnabled')
    self.payroll_accounting_enabled = attributes[:'payrollAccountingEnabled']
  end

  if attributes.has_key?(:'userIsAuthWageMenu')
    self.user_is_auth_wage_menu = attributes[:'userIsAuthWageMenu']
  end

  if attributes.has_key?(:'userIsAuthMySalary')
    self.user_is_auth_my_salary = attributes[:'userIsAuthMySalary']
  end

  if attributes.has_key?(:'electronicVouchersEnabled')
    self.electronic_vouchers_enabled = attributes[:'electronicVouchersEnabled']
  end

  if attributes.has_key?(:'travelExpenseEnabled')
    self.travel_expense_enabled = attributes[:'travelExpenseEnabled']
  end

  if attributes.has_key?(:'documentArchiveEnabled')
    self.document_archive_enabled = attributes[:'documentArchiveEnabled']
  end

  if attributes.has_key?(:'archiveReceptionEnabled')
    self.archive_reception_enabled = attributes[:'archiveReceptionEnabled']
  end

  if attributes.has_key?(:'userIsPayslipOnly')
    self.user_is_payslip_only = attributes[:'userIsPayslipOnly']
  end

  if attributes.has_key?(:'travelExpenseRatesEnabled')
    self.travel_expense_rates_enabled = attributes[:'travelExpenseRatesEnabled']
  end

  if attributes.has_key?(:'taxFreeMileageRatesEnabled')
    self.tax_free_mileage_rates_enabled = attributes[:'taxFreeMileageRatesEnabled']
  end

  if attributes.has_key?(:'approveTravelExpenseEnabled')
    self.approve_travel_expense_enabled = attributes[:'approveTravelExpenseEnabled']
  end

  if attributes.has_key?(:'userIsAuthProjectInfo')
    self.user_is_auth_project_info = attributes[:'userIsAuthProjectInfo']
  end

  if attributes.has_key?(:'userIsAuthTravelAndExpenseApprove')
    self.user_is_auth_travel_and_expense_approve = attributes[:'userIsAuthTravelAndExpenseApprove']
  end

  if attributes.has_key?(:'userIsAuthEmployeeInfo')
    self.user_is_auth_employee_info = attributes[:'userIsAuthEmployeeInfo']
  end

  if attributes.has_key?(:'userIsAuthVoucherApprove')
    self.user_is_auth_voucher_approve = attributes[:'userIsAuthVoucherApprove']
  end

  if attributes.has_key?(:'userIsAuthRemitApprove')
    self.user_is_auth_remit_approve = attributes[:'userIsAuthRemitApprove']
  end

  if attributes.has_key?(:'userIsAuthInvoicing')
    self.user_is_auth_invoicing = attributes[:'userIsAuthInvoicing']
  end

  if attributes.has_key?(:'userIsAuthCreateOrder')
    self.user_is_auth_create_order = attributes[:'userIsAuthCreateOrder']
  end

  if attributes.has_key?(:'vatOnForCompany')
    self.vat_on_for_company = attributes[:'vatOnForCompany']
  end

  if attributes.has_key?(:'taxFreeDietRatesEnabled')
    self.tax_free_diet_rates_enabled = attributes[:'taxFreeDietRatesEnabled']
  end

  if attributes.has_key?(:'travelDietIgnorePostingEnabled')
    self.travel_diet_ignore_posting_enabled = attributes[:'travelDietIgnorePostingEnabled']
  end

  if attributes.has_key?(:'employeeEnabled')
    self.employee_enabled = attributes[:'employeeEnabled']
  end

  if attributes.has_key?(:'hourBalanceEnabledForEmployee')
    self.hour_balance_enabled_for_employee = attributes[:'hourBalanceEnabledForEmployee']
  end

  if attributes.has_key?(:'vacationBalanceEnabledForEmployee')
    self.vacation_balance_enabled_for_employee = attributes[:'vacationBalanceEnabledForEmployee']
  end

  if attributes.has_key?(:'userIsAuthCreateCustomer')
    self.user_is_auth_create_customer = attributes[:'userIsAuthCreateCustomer']
  end

  if attributes.has_key?(:'userIsAuthProjectMenu')
    self.user_is_auth_project_menu = attributes[:'userIsAuthProjectMenu']
  end

  if attributes.has_key?(:'userIsAuthCompanyAccountingReports')
    self.user_is_auth_company_accounting_reports = attributes[:'userIsAuthCompanyAccountingReports']
  end

  if attributes.has_key?(:'vvselectroEnabled')
    self.vvselectro_enabled = attributes[:'vvselectroEnabled']
  end
end

Instance Attribute Details

#approve_travel_expense_enabledObject

Returns the value of attribute approve_travel_expense_enabled.



43
44
45
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 43

def approve_travel_expense_enabled
  @approve_travel_expense_enabled
end

#archive_reception_enabledObject

Returns the value of attribute archive_reception_enabled.



35
36
37
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 35

def archive_reception_enabled
  @archive_reception_enabled
end

#department_enabledObject

Returns the value of attribute department_enabled.



19
20
21
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 19

def department_enabled
  @department_enabled
end

#document_archive_enabledObject

Returns the value of attribute document_archive_enabled.



33
34
35
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 33

def document_archive_enabled
  @document_archive_enabled
end

#electronic_vouchers_enabledObject

Returns the value of attribute electronic_vouchers_enabled.



29
30
31
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 29

def electronic_vouchers_enabled
  @electronic_vouchers_enabled
end

#employee_enabledObject

Returns the value of attribute employee_enabled.



65
66
67
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 65

def employee_enabled
  @employee_enabled
end

#hour_balance_enabled_for_employeeObject

Returns the value of attribute hour_balance_enabled_for_employee.



67
68
69
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 67

def hour_balance_enabled_for_employee
  @hour_balance_enabled_for_employee
end

#hour_registration_enabledObject

Returns the value of attribute hour_registration_enabled.



15
16
17
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 15

def hour_registration_enabled
  @hour_registration_enabled
end

#payroll_accounting_enabledObject

Returns the value of attribute payroll_accounting_enabled.



23
24
25
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 23

def payroll_accounting_enabled
  @payroll_accounting_enabled
end

#project_enabledObject

Returns the value of attribute project_enabled.



17
18
19
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 17

def project_enabled
  @project_enabled
end

#tax_free_diet_rates_enabledObject

Returns the value of attribute tax_free_diet_rates_enabled.



61
62
63
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 61

def tax_free_diet_rates_enabled
  @tax_free_diet_rates_enabled
end

#tax_free_mileage_rates_enabledObject

Returns the value of attribute tax_free_mileage_rates_enabled.



41
42
43
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 41

def tax_free_mileage_rates_enabled
  @tax_free_mileage_rates_enabled
end

#travel_diet_ignore_posting_enabledObject

Returns the value of attribute travel_diet_ignore_posting_enabled.



63
64
65
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 63

def travel_diet_ignore_posting_enabled
  @travel_diet_ignore_posting_enabled
end

#travel_expense_enabledObject

Returns the value of attribute travel_expense_enabled.



31
32
33
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 31

def travel_expense_enabled
  @travel_expense_enabled
end

#travel_expense_rates_enabledObject

Returns the value of attribute travel_expense_rates_enabled.



39
40
41
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 39

def travel_expense_rates_enabled
  @travel_expense_rates_enabled
end

#user_is_allowed_to_register_hoursObject

Returns the value of attribute user_is_allowed_to_register_hours.



21
22
23
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 21

def user_is_allowed_to_register_hours
  @user_is_allowed_to_register_hours
end

#user_is_auth_company_accounting_reportsObject

Returns the value of attribute user_is_auth_company_accounting_reports.



75
76
77
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 75

def user_is_auth_company_accounting_reports
  @user_is_auth_company_accounting_reports
end

#user_is_auth_create_customerObject

Returns the value of attribute user_is_auth_create_customer.



71
72
73
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 71

def user_is_auth_create_customer
  @user_is_auth_create_customer
end

#user_is_auth_create_orderObject

Returns the value of attribute user_is_auth_create_order.



57
58
59
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 57

def user_is_auth_create_order
  @user_is_auth_create_order
end

#user_is_auth_employee_infoObject

Returns the value of attribute user_is_auth_employee_info.



49
50
51
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 49

def user_is_auth_employee_info
  @user_is_auth_employee_info
end

#user_is_auth_invoicingObject

Returns the value of attribute user_is_auth_invoicing.



55
56
57
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 55

def user_is_auth_invoicing
  @user_is_auth_invoicing
end

#user_is_auth_my_salaryObject

Returns the value of attribute user_is_auth_my_salary.



27
28
29
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 27

def user_is_auth_my_salary
  @user_is_auth_my_salary
end

#user_is_auth_project_infoObject

Returns the value of attribute user_is_auth_project_info.



45
46
47
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 45

def user_is_auth_project_info
  @user_is_auth_project_info
end

#user_is_auth_project_menuObject

Returns the value of attribute user_is_auth_project_menu.



73
74
75
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 73

def user_is_auth_project_menu
  @user_is_auth_project_menu
end

#user_is_auth_remit_approveObject

Returns the value of attribute user_is_auth_remit_approve.



53
54
55
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 53

def user_is_auth_remit_approve
  @user_is_auth_remit_approve
end

#user_is_auth_travel_and_expense_approveObject

Returns the value of attribute user_is_auth_travel_and_expense_approve.



47
48
49
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 47

def user_is_auth_travel_and_expense_approve
  @user_is_auth_travel_and_expense_approve
end

#user_is_auth_voucher_approveObject

Returns the value of attribute user_is_auth_voucher_approve.



51
52
53
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 51

def user_is_auth_voucher_approve
  @user_is_auth_voucher_approve
end

#user_is_auth_wage_menuObject

Returns the value of attribute user_is_auth_wage_menu.



25
26
27
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 25

def user_is_auth_wage_menu
  @user_is_auth_wage_menu
end

#user_is_payslip_onlyObject

Returns the value of attribute user_is_payslip_only.



37
38
39
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 37

def user_is_payslip_only
  @user_is_payslip_only
end

#vacation_balance_enabled_for_employeeObject

Returns the value of attribute vacation_balance_enabled_for_employee.



69
70
71
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 69

def vacation_balance_enabled_for_employee
  @vacation_balance_enabled_for_employee
end

#vat_on_for_companyObject

Returns the value of attribute vat_on_for_company.



59
60
61
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 59

def vat_on_for_company
  @vat_on_for_company
end

#vvselectro_enabledObject

Returns the value of attribute vvselectro_enabled.



77
78
79
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 77

def vvselectro_enabled
  @vvselectro_enabled
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 80

def self.attribute_map
  {
    :'hour_registration_enabled' => :'hourRegistrationEnabled',
    :'project_enabled' => :'projectEnabled',
    :'department_enabled' => :'departmentEnabled',
    :'user_is_allowed_to_register_hours' => :'userIsAllowedToRegisterHours',
    :'payroll_accounting_enabled' => :'payrollAccountingEnabled',
    :'user_is_auth_wage_menu' => :'userIsAuthWageMenu',
    :'user_is_auth_my_salary' => :'userIsAuthMySalary',
    :'electronic_vouchers_enabled' => :'electronicVouchersEnabled',
    :'travel_expense_enabled' => :'travelExpenseEnabled',
    :'document_archive_enabled' => :'documentArchiveEnabled',
    :'archive_reception_enabled' => :'archiveReceptionEnabled',
    :'user_is_payslip_only' => :'userIsPayslipOnly',
    :'travel_expense_rates_enabled' => :'travelExpenseRatesEnabled',
    :'tax_free_mileage_rates_enabled' => :'taxFreeMileageRatesEnabled',
    :'approve_travel_expense_enabled' => :'approveTravelExpenseEnabled',
    :'user_is_auth_project_info' => :'userIsAuthProjectInfo',
    :'user_is_auth_travel_and_expense_approve' => :'userIsAuthTravelAndExpenseApprove',
    :'user_is_auth_employee_info' => :'userIsAuthEmployeeInfo',
    :'user_is_auth_voucher_approve' => :'userIsAuthVoucherApprove',
    :'user_is_auth_remit_approve' => :'userIsAuthRemitApprove',
    :'user_is_auth_invoicing' => :'userIsAuthInvoicing',
    :'user_is_auth_create_order' => :'userIsAuthCreateOrder',
    :'vat_on_for_company' => :'vatOnForCompany',
    :'tax_free_diet_rates_enabled' => :'taxFreeDietRatesEnabled',
    :'travel_diet_ignore_posting_enabled' => :'travelDietIgnorePostingEnabled',
    :'employee_enabled' => :'employeeEnabled',
    :'hour_balance_enabled_for_employee' => :'hourBalanceEnabledForEmployee',
    :'vacation_balance_enabled_for_employee' => :'vacationBalanceEnabledForEmployee',
    :'user_is_auth_create_customer' => :'userIsAuthCreateCustomer',
    :'user_is_auth_project_menu' => :'userIsAuthProjectMenu',
    :'user_is_auth_company_accounting_reports' => :'userIsAuthCompanyAccountingReports',
    :'vvselectro_enabled' => :'vvselectroEnabled'
  }
end

.swagger_typesObject

Attribute type mapping.



118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 118

def self.swagger_types
  {
    :'hour_registration_enabled' => :'BOOLEAN',
    :'project_enabled' => :'BOOLEAN',
    :'department_enabled' => :'BOOLEAN',
    :'user_is_allowed_to_register_hours' => :'BOOLEAN',
    :'payroll_accounting_enabled' => :'BOOLEAN',
    :'user_is_auth_wage_menu' => :'BOOLEAN',
    :'user_is_auth_my_salary' => :'BOOLEAN',
    :'electronic_vouchers_enabled' => :'BOOLEAN',
    :'travel_expense_enabled' => :'BOOLEAN',
    :'document_archive_enabled' => :'BOOLEAN',
    :'archive_reception_enabled' => :'BOOLEAN',
    :'user_is_payslip_only' => :'BOOLEAN',
    :'travel_expense_rates_enabled' => :'BOOLEAN',
    :'tax_free_mileage_rates_enabled' => :'BOOLEAN',
    :'approve_travel_expense_enabled' => :'BOOLEAN',
    :'user_is_auth_project_info' => :'BOOLEAN',
    :'user_is_auth_travel_and_expense_approve' => :'BOOLEAN',
    :'user_is_auth_employee_info' => :'BOOLEAN',
    :'user_is_auth_voucher_approve' => :'BOOLEAN',
    :'user_is_auth_remit_approve' => :'BOOLEAN',
    :'user_is_auth_invoicing' => :'BOOLEAN',
    :'user_is_auth_create_order' => :'BOOLEAN',
    :'vat_on_for_company' => :'BOOLEAN',
    :'tax_free_diet_rates_enabled' => :'BOOLEAN',
    :'travel_diet_ignore_posting_enabled' => :'BOOLEAN',
    :'employee_enabled' => :'BOOLEAN',
    :'hour_balance_enabled_for_employee' => :'BOOLEAN',
    :'vacation_balance_enabled_for_employee' => :'BOOLEAN',
    :'user_is_auth_create_customer' => :'BOOLEAN',
    :'user_is_auth_project_menu' => :'BOOLEAN',
    :'user_is_auth_company_accounting_reports' => :'BOOLEAN',
    :'vvselectro_enabled' => :'BOOLEAN'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 307

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      hour_registration_enabled == o.hour_registration_enabled &&
      project_enabled == o.project_enabled &&
      department_enabled == o.department_enabled &&
      user_is_allowed_to_register_hours == o.user_is_allowed_to_register_hours &&
      payroll_accounting_enabled == o.payroll_accounting_enabled &&
      user_is_auth_wage_menu == o.user_is_auth_wage_menu &&
      user_is_auth_my_salary == o.user_is_auth_my_salary &&
      electronic_vouchers_enabled == o.electronic_vouchers_enabled &&
      travel_expense_enabled == o.travel_expense_enabled &&
      document_archive_enabled == o.document_archive_enabled &&
      archive_reception_enabled == o.archive_reception_enabled &&
      user_is_payslip_only == o.user_is_payslip_only &&
      travel_expense_rates_enabled == o.travel_expense_rates_enabled &&
      tax_free_mileage_rates_enabled == o.tax_free_mileage_rates_enabled &&
      approve_travel_expense_enabled == o.approve_travel_expense_enabled &&
      user_is_auth_project_info == o.user_is_auth_project_info &&
      user_is_auth_travel_and_expense_approve == o.user_is_auth_travel_and_expense_approve &&
      user_is_auth_employee_info == o.user_is_auth_employee_info &&
      user_is_auth_voucher_approve == o.user_is_auth_voucher_approve &&
      user_is_auth_remit_approve == o.user_is_auth_remit_approve &&
      user_is_auth_invoicing == o.user_is_auth_invoicing &&
      user_is_auth_create_order == o.user_is_auth_create_order &&
      vat_on_for_company == o.vat_on_for_company &&
      tax_free_diet_rates_enabled == o.tax_free_diet_rates_enabled &&
      travel_diet_ignore_posting_enabled == o.travel_diet_ignore_posting_enabled &&
      employee_enabled == o.employee_enabled &&
      hour_balance_enabled_for_employee == o.hour_balance_enabled_for_employee &&
      vacation_balance_enabled_for_employee == o.vacation_balance_enabled_for_employee &&
      user_is_auth_create_customer == o.user_is_auth_create_customer &&
      user_is_auth_project_menu == o.user_is_auth_project_menu &&
      user_is_auth_company_accounting_reports == o.user_is_auth_company_accounting_reports &&
      vvselectro_enabled == o.vvselectro_enabled
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 380

def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :BOOLEAN
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    temp_model = TripletexRubyClient.const_get(type).new
    temp_model.build_from_hash(value)
  end
end

#_to_hash(value) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



446
447
448
449
450
451
452
453
454
455
456
457
458
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 446

def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map { |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 359

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.swagger_types.each_pair do |key, type|
    if type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    end # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


346
347
348
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 346

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



352
353
354
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 352

def hash
  [hour_registration_enabled, project_enabled, department_enabled, user_is_allowed_to_register_hours, payroll_accounting_enabled, user_is_auth_wage_menu, user_is_auth_my_salary, electronic_vouchers_enabled, travel_expense_enabled, document_archive_enabled, archive_reception_enabled, user_is_payslip_only, travel_expense_rates_enabled, tax_free_mileage_rates_enabled, approve_travel_expense_enabled, user_is_auth_project_info, user_is_auth_travel_and_expense_approve, user_is_auth_employee_info, user_is_auth_voucher_approve, user_is_auth_remit_approve, user_is_auth_invoicing, user_is_auth_create_order, vat_on_for_company, tax_free_diet_rates_enabled, travel_diet_ignore_posting_enabled, employee_enabled, hour_balance_enabled_for_employee, vacation_balance_enabled_for_employee, user_is_auth_create_customer, user_is_auth_project_menu, user_is_auth_company_accounting_reports, vvselectro_enabled].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



294
295
296
297
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 294

def list_invalid_properties
  invalid_properties = Array.new
  invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



426
427
428
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 426

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



432
433
434
435
436
437
438
439
440
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 432

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    next if value.nil?
    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



420
421
422
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 420

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



301
302
303
# File 'lib/tripletex_ruby_client/models/app_specific.rb', line 301

def valid?
  true
end