Class: Gbizinfo::ManagementIndex

Inherits:
Object
  • Object
show all
Defined in:
lib/gbizinfo/models/management_index.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ManagementIndex

Initializes the object

Parameters:

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

    Model attributes in the form of hash



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
# File 'lib/gbizinfo/models/management_index.rb', line 168

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `Gbizinfo::ManagementIndex` initialize method"
  end

  # check to see if the attribute exists and convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h|
    if (!self.class.attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `Gbizinfo::ManagementIndex`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
    end
    h[k.to_sym] = v
  }

  if attributes.key?(:'capital_stock_summary_of_business_results')
    self.capital_stock_summary_of_business_results = attributes[:'capital_stock_summary_of_business_results']
  end

  if attributes.key?(:'capital_stock_summary_of_business_results_unit_ref')
    self.capital_stock_summary_of_business_results_unit_ref = attributes[:'capital_stock_summary_of_business_results_unit_ref']
  end

  if attributes.key?(:'gross_operating_revenue_summary_of_business_results')
    self.gross_operating_revenue_summary_of_business_results = attributes[:'gross_operating_revenue_summary_of_business_results']
  end

  if attributes.key?(:'gross_operating_revenue_summary_of_business_results_unit_ref')
    self.gross_operating_revenue_summary_of_business_results_unit_ref = attributes[:'gross_operating_revenue_summary_of_business_results_unit_ref']
  end

  if attributes.key?(:'net_assets_summary_of_business_results')
    self.net_assets_summary_of_business_results = attributes[:'net_assets_summary_of_business_results']
  end

  if attributes.key?(:'net_assets_summary_of_business_results_unit_ref')
    self.net_assets_summary_of_business_results_unit_ref = attributes[:'net_assets_summary_of_business_results_unit_ref']
  end

  if attributes.key?(:'net_income_loss_summary_of_business_results')
    self.net_income_loss_summary_of_business_results = attributes[:'net_income_loss_summary_of_business_results']
  end

  if attributes.key?(:'net_income_loss_summary_of_business_results_unit_ref')
    self.net_income_loss_summary_of_business_results_unit_ref = attributes[:'net_income_loss_summary_of_business_results_unit_ref']
  end

  if attributes.key?(:'net_premiums_written_summary_of_business_results_ins')
    self.net_premiums_written_summary_of_business_results_ins = attributes[:'net_premiums_written_summary_of_business_results_ins']
  end

  if attributes.key?(:'net_premiums_written_summary_of_business_results_ins_unit_ref')
    self.net_premiums_written_summary_of_business_results_ins_unit_ref = attributes[:'net_premiums_written_summary_of_business_results_ins_unit_ref']
  end

  if attributes.key?(:'net_sales_summary_of_business_results')
    self.net_sales_summary_of_business_results = attributes[:'net_sales_summary_of_business_results']
  end

  if attributes.key?(:'net_sales_summary_of_business_results_unit_ref')
    self.net_sales_summary_of_business_results_unit_ref = attributes[:'net_sales_summary_of_business_results_unit_ref']
  end

  if attributes.key?(:'number_of_employees')
    self.number_of_employees = attributes[:'number_of_employees']
  end

  if attributes.key?(:'number_of_employees_unit_ref')
    self.number_of_employees_unit_ref = attributes[:'number_of_employees_unit_ref']
  end

  if attributes.key?(:'operating_revenue1_summary_of_business_results')
    self.operating_revenue1_summary_of_business_results = attributes[:'operating_revenue1_summary_of_business_results']
  end

  if attributes.key?(:'operating_revenue1_summary_of_business_results_unit_ref')
    self.operating_revenue1_summary_of_business_results_unit_ref = attributes[:'operating_revenue1_summary_of_business_results_unit_ref']
  end

  if attributes.key?(:'operating_revenue2_summary_of_business_results')
    self.operating_revenue2_summary_of_business_results = attributes[:'operating_revenue2_summary_of_business_results']
  end

  if attributes.key?(:'operating_revenue2_summary_of_business_results_unit_ref')
    self.operating_revenue2_summary_of_business_results_unit_ref = attributes[:'operating_revenue2_summary_of_business_results_unit_ref']
  end

  if attributes.key?(:'ordinary_income_loss_summary_of_business_results')
    self.ordinary_income_loss_summary_of_business_results = attributes[:'ordinary_income_loss_summary_of_business_results']
  end

  if attributes.key?(:'ordinary_income_loss_summary_of_business_results_unit_ref')
    self.ordinary_income_loss_summary_of_business_results_unit_ref = attributes[:'ordinary_income_loss_summary_of_business_results_unit_ref']
  end

  if attributes.key?(:'ordinary_income_summary_of_business_results')
    self.ordinary_income_summary_of_business_results = attributes[:'ordinary_income_summary_of_business_results']
  end

  if attributes.key?(:'ordinary_income_summary_of_business_results_unit_ref')
    self.ordinary_income_summary_of_business_results_unit_ref = attributes[:'ordinary_income_summary_of_business_results_unit_ref']
  end

  if attributes.key?(:'period')
    self.period = attributes[:'period']
  end

  if attributes.key?(:'total_assets_summary_of_business_results')
    self.total_assets_summary_of_business_results = attributes[:'total_assets_summary_of_business_results']
  end

  if attributes.key?(:'total_assets_summary_of_business_results_unit_ref')
    self.total_assets_summary_of_business_results_unit_ref = attributes[:'total_assets_summary_of_business_results_unit_ref']
  end
end

Instance Attribute Details

#capital_stock_summary_of_business_resultsObject

資本金



19
20
21
# File 'lib/gbizinfo/models/management_index.rb', line 19

def capital_stock_summary_of_business_results
  @capital_stock_summary_of_business_results
end

#capital_stock_summary_of_business_results_unit_refObject

資本金(単位)



22
23
24
# File 'lib/gbizinfo/models/management_index.rb', line 22

def capital_stock_summary_of_business_results_unit_ref
  @capital_stock_summary_of_business_results_unit_ref
end

#gross_operating_revenue_summary_of_business_resultsObject

営業総収入



25
26
27
# File 'lib/gbizinfo/models/management_index.rb', line 25

def gross_operating_revenue_summary_of_business_results
  @gross_operating_revenue_summary_of_business_results
end

#gross_operating_revenue_summary_of_business_results_unit_refObject

営業総収入(単位)



28
29
30
# File 'lib/gbizinfo/models/management_index.rb', line 28

def gross_operating_revenue_summary_of_business_results_unit_ref
  @gross_operating_revenue_summary_of_business_results_unit_ref
end

#net_assets_summary_of_business_resultsObject

純資産額



31
32
33
# File 'lib/gbizinfo/models/management_index.rb', line 31

def net_assets_summary_of_business_results
  @net_assets_summary_of_business_results
end

#net_assets_summary_of_business_results_unit_refObject

純資産額(単位)



34
35
36
# File 'lib/gbizinfo/models/management_index.rb', line 34

def net_assets_summary_of_business_results_unit_ref
  @net_assets_summary_of_business_results_unit_ref
end

#net_income_loss_summary_of_business_resultsObject

当期純利益又は当期純損失(△)



37
38
39
# File 'lib/gbizinfo/models/management_index.rb', line 37

def net_income_loss_summary_of_business_results
  @net_income_loss_summary_of_business_results
end

#net_income_loss_summary_of_business_results_unit_refObject

当期純利益又は当期純損失(△)(単位)



40
41
42
# File 'lib/gbizinfo/models/management_index.rb', line 40

def net_income_loss_summary_of_business_results_unit_ref
  @net_income_loss_summary_of_business_results_unit_ref
end

#net_premiums_written_summary_of_business_results_insObject

正味収入保険料



43
44
45
# File 'lib/gbizinfo/models/management_index.rb', line 43

def net_premiums_written_summary_of_business_results_ins
  @net_premiums_written_summary_of_business_results_ins
end

#net_premiums_written_summary_of_business_results_ins_unit_refObject

正味収入保険料(単位)



46
47
48
# File 'lib/gbizinfo/models/management_index.rb', line 46

def net_premiums_written_summary_of_business_results_ins_unit_ref
  @net_premiums_written_summary_of_business_results_ins_unit_ref
end

#net_sales_summary_of_business_resultsObject

売上高



49
50
51
# File 'lib/gbizinfo/models/management_index.rb', line 49

def net_sales_summary_of_business_results
  @net_sales_summary_of_business_results
end

#net_sales_summary_of_business_results_unit_refObject

売上高(単位)



52
53
54
# File 'lib/gbizinfo/models/management_index.rb', line 52

def net_sales_summary_of_business_results_unit_ref
  @net_sales_summary_of_business_results_unit_ref
end

#number_of_employeesObject

従業員数



55
56
57
# File 'lib/gbizinfo/models/management_index.rb', line 55

def number_of_employees
  @number_of_employees
end

#number_of_employees_unit_refObject

従業員数(単位)



58
59
60
# File 'lib/gbizinfo/models/management_index.rb', line 58

def number_of_employees_unit_ref
  @number_of_employees_unit_ref
end

#operating_revenue1_summary_of_business_resultsObject

営業収益



61
62
63
# File 'lib/gbizinfo/models/management_index.rb', line 61

def operating_revenue1_summary_of_business_results
  @operating_revenue1_summary_of_business_results
end

#operating_revenue1_summary_of_business_results_unit_refObject

営業収益(単位)



64
65
66
# File 'lib/gbizinfo/models/management_index.rb', line 64

def operating_revenue1_summary_of_business_results_unit_ref
  @operating_revenue1_summary_of_business_results_unit_ref
end

#operating_revenue2_summary_of_business_resultsObject

営業収入



67
68
69
# File 'lib/gbizinfo/models/management_index.rb', line 67

def operating_revenue2_summary_of_business_results
  @operating_revenue2_summary_of_business_results
end

#operating_revenue2_summary_of_business_results_unit_refObject

営業収入(単位)



70
71
72
# File 'lib/gbizinfo/models/management_index.rb', line 70

def operating_revenue2_summary_of_business_results_unit_ref
  @operating_revenue2_summary_of_business_results_unit_ref
end

#ordinary_income_loss_summary_of_business_resultsObject

経常利益又は経常損失(△)



73
74
75
# File 'lib/gbizinfo/models/management_index.rb', line 73

def ordinary_income_loss_summary_of_business_results
  @ordinary_income_loss_summary_of_business_results
end

#ordinary_income_loss_summary_of_business_results_unit_refObject

経常利益又は経常損失(△)(単位)



76
77
78
# File 'lib/gbizinfo/models/management_index.rb', line 76

def ordinary_income_loss_summary_of_business_results_unit_ref
  @ordinary_income_loss_summary_of_business_results_unit_ref
end

#ordinary_income_summary_of_business_resultsObject

経常収益



79
80
81
# File 'lib/gbizinfo/models/management_index.rb', line 79

def ordinary_income_summary_of_business_results
  @ordinary_income_summary_of_business_results
end

#ordinary_income_summary_of_business_results_unit_refObject

経常収益(単位)



82
83
84
# File 'lib/gbizinfo/models/management_index.rb', line 82

def ordinary_income_summary_of_business_results_unit_ref
  @ordinary_income_summary_of_business_results_unit_ref
end

#periodObject

回次



85
86
87
# File 'lib/gbizinfo/models/management_index.rb', line 85

def period
  @period
end

#total_assets_summary_of_business_resultsObject

総資産額



88
89
90
# File 'lib/gbizinfo/models/management_index.rb', line 88

def total_assets_summary_of_business_results
  @total_assets_summary_of_business_results
end

#total_assets_summary_of_business_results_unit_refObject

総資産額(単位)



91
92
93
# File 'lib/gbizinfo/models/management_index.rb', line 91

def total_assets_summary_of_business_results_unit_ref
  @total_assets_summary_of_business_results_unit_ref
end

Class Method Details

._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



368
369
370
371
372
373
374
375
376
377
378
379
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
# File 'lib/gbizinfo/models/management_index.rb', line 368

def self._deserialize(type, value)
  case type.to_sym
  when :Time
    Time.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
    # models (e.g. Pet) or oneOf
    klass = Gbizinfo.const_get(type)
    klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
  end
end

.acceptable_attributesObject

Returns all the JSON keys this model knows about



125
126
127
# File 'lib/gbizinfo/models/management_index.rb', line 125

def self.acceptable_attributes
  attribute_map.values
end

.attribute_mapObject

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



94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# File 'lib/gbizinfo/models/management_index.rb', line 94

def self.attribute_map
  {
    :'capital_stock_summary_of_business_results' => :'capital_stock_summary_of_business_results',
    :'capital_stock_summary_of_business_results_unit_ref' => :'capital_stock_summary_of_business_results_unit_ref',
    :'gross_operating_revenue_summary_of_business_results' => :'gross_operating_revenue_summary_of_business_results',
    :'gross_operating_revenue_summary_of_business_results_unit_ref' => :'gross_operating_revenue_summary_of_business_results_unit_ref',
    :'net_assets_summary_of_business_results' => :'net_assets_summary_of_business_results',
    :'net_assets_summary_of_business_results_unit_ref' => :'net_assets_summary_of_business_results_unit_ref',
    :'net_income_loss_summary_of_business_results' => :'net_income_loss_summary_of_business_results',
    :'net_income_loss_summary_of_business_results_unit_ref' => :'net_income_loss_summary_of_business_results_unit_ref',
    :'net_premiums_written_summary_of_business_results_ins' => :'net_premiums_written_summary_of_business_results_ins',
    :'net_premiums_written_summary_of_business_results_ins_unit_ref' => :'net_premiums_written_summary_of_business_results_ins_unit_ref',
    :'net_sales_summary_of_business_results' => :'net_sales_summary_of_business_results',
    :'net_sales_summary_of_business_results_unit_ref' => :'net_sales_summary_of_business_results_unit_ref',
    :'number_of_employees' => :'number_of_employees',
    :'number_of_employees_unit_ref' => :'number_of_employees_unit_ref',
    :'operating_revenue1_summary_of_business_results' => :'operating_revenue1_summary_of_business_results',
    :'operating_revenue1_summary_of_business_results_unit_ref' => :'operating_revenue1_summary_of_business_results_unit_ref',
    :'operating_revenue2_summary_of_business_results' => :'operating_revenue2_summary_of_business_results',
    :'operating_revenue2_summary_of_business_results_unit_ref' => :'operating_revenue2_summary_of_business_results_unit_ref',
    :'ordinary_income_loss_summary_of_business_results' => :'ordinary_income_loss_summary_of_business_results',
    :'ordinary_income_loss_summary_of_business_results_unit_ref' => :'ordinary_income_loss_summary_of_business_results_unit_ref',
    :'ordinary_income_summary_of_business_results' => :'ordinary_income_summary_of_business_results',
    :'ordinary_income_summary_of_business_results_unit_ref' => :'ordinary_income_summary_of_business_results_unit_ref',
    :'period' => :'period',
    :'total_assets_summary_of_business_results' => :'total_assets_summary_of_business_results',
    :'total_assets_summary_of_business_results_unit_ref' => :'total_assets_summary_of_business_results_unit_ref'
  }
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



344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
# File 'lib/gbizinfo/models/management_index.rb', line 344

def self.build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  attributes = attributes.transform_keys(&:to_sym)
  transformed_hash = {}
  openapi_types.each_pair do |key, type|
    if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
      transformed_hash["#{key}"] = nil
    elsif 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[attribute_map[key]].is_a?(Array)
        transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
      end
    elsif !attributes[attribute_map[key]].nil?
      transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
    end
  end
  new(transformed_hash)
end

.openapi_nullableObject

List of attributes with nullable: true



161
162
163
164
# File 'lib/gbizinfo/models/management_index.rb', line 161

def self.openapi_nullable
  Set.new([
  ])
end

.openapi_typesObject

Attribute type mapping.



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# File 'lib/gbizinfo/models/management_index.rb', line 130

def self.openapi_types
  {
    :'capital_stock_summary_of_business_results' => :'Integer',
    :'capital_stock_summary_of_business_results_unit_ref' => :'String',
    :'gross_operating_revenue_summary_of_business_results' => :'Integer',
    :'gross_operating_revenue_summary_of_business_results_unit_ref' => :'String',
    :'net_assets_summary_of_business_results' => :'Integer',
    :'net_assets_summary_of_business_results_unit_ref' => :'String',
    :'net_income_loss_summary_of_business_results' => :'Integer',
    :'net_income_loss_summary_of_business_results_unit_ref' => :'String',
    :'net_premiums_written_summary_of_business_results_ins' => :'Integer',
    :'net_premiums_written_summary_of_business_results_ins_unit_ref' => :'String',
    :'net_sales_summary_of_business_results' => :'Integer',
    :'net_sales_summary_of_business_results_unit_ref' => :'String',
    :'number_of_employees' => :'Integer',
    :'number_of_employees_unit_ref' => :'String',
    :'operating_revenue1_summary_of_business_results' => :'Integer',
    :'operating_revenue1_summary_of_business_results_unit_ref' => :'String',
    :'operating_revenue2_summary_of_business_results' => :'Integer',
    :'operating_revenue2_summary_of_business_results_unit_ref' => :'String',
    :'ordinary_income_loss_summary_of_business_results' => :'Integer',
    :'ordinary_income_loss_summary_of_business_results_unit_ref' => :'String',
    :'ordinary_income_summary_of_business_results' => :'Integer',
    :'ordinary_income_summary_of_business_results_unit_ref' => :'String',
    :'period' => :'String',
    :'total_assets_summary_of_business_results' => :'Integer',
    :'total_assets_summary_of_business_results_unit_ref' => :'String'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
# File 'lib/gbizinfo/models/management_index.rb', line 299

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      capital_stock_summary_of_business_results == o.capital_stock_summary_of_business_results &&
      capital_stock_summary_of_business_results_unit_ref == o.capital_stock_summary_of_business_results_unit_ref &&
      gross_operating_revenue_summary_of_business_results == o.gross_operating_revenue_summary_of_business_results &&
      gross_operating_revenue_summary_of_business_results_unit_ref == o.gross_operating_revenue_summary_of_business_results_unit_ref &&
      net_assets_summary_of_business_results == o.net_assets_summary_of_business_results &&
      net_assets_summary_of_business_results_unit_ref == o.net_assets_summary_of_business_results_unit_ref &&
      net_income_loss_summary_of_business_results == o.net_income_loss_summary_of_business_results &&
      net_income_loss_summary_of_business_results_unit_ref == o.net_income_loss_summary_of_business_results_unit_ref &&
      net_premiums_written_summary_of_business_results_ins == o.net_premiums_written_summary_of_business_results_ins &&
      net_premiums_written_summary_of_business_results_ins_unit_ref == o.net_premiums_written_summary_of_business_results_ins_unit_ref &&
      net_sales_summary_of_business_results == o.net_sales_summary_of_business_results &&
      net_sales_summary_of_business_results_unit_ref == o.net_sales_summary_of_business_results_unit_ref &&
      number_of_employees == o.number_of_employees &&
      number_of_employees_unit_ref == o.number_of_employees_unit_ref &&
      operating_revenue1_summary_of_business_results == o.operating_revenue1_summary_of_business_results &&
      operating_revenue1_summary_of_business_results_unit_ref == o.operating_revenue1_summary_of_business_results_unit_ref &&
      operating_revenue2_summary_of_business_results == o.operating_revenue2_summary_of_business_results &&
      operating_revenue2_summary_of_business_results_unit_ref == o.operating_revenue2_summary_of_business_results_unit_ref &&
      ordinary_income_loss_summary_of_business_results == o.ordinary_income_loss_summary_of_business_results &&
      ordinary_income_loss_summary_of_business_results_unit_ref == o.ordinary_income_loss_summary_of_business_results_unit_ref &&
      ordinary_income_summary_of_business_results == o.ordinary_income_summary_of_business_results &&
      ordinary_income_summary_of_business_results_unit_ref == o.ordinary_income_summary_of_business_results_unit_ref &&
      period == o.period &&
      total_assets_summary_of_business_results == o.total_assets_summary_of_business_results &&
      total_assets_summary_of_business_results_unit_ref == o.total_assets_summary_of_business_results_unit_ref
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



439
440
441
442
443
444
445
446
447
448
449
450
451
# File 'lib/gbizinfo/models/management_index.rb', line 439

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

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


331
332
333
# File 'lib/gbizinfo/models/management_index.rb', line 331

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



337
338
339
# File 'lib/gbizinfo/models/management_index.rb', line 337

def hash
  [capital_stock_summary_of_business_results, capital_stock_summary_of_business_results_unit_ref, gross_operating_revenue_summary_of_business_results, gross_operating_revenue_summary_of_business_results_unit_ref, net_assets_summary_of_business_results, net_assets_summary_of_business_results_unit_ref, net_income_loss_summary_of_business_results, net_income_loss_summary_of_business_results_unit_ref, net_premiums_written_summary_of_business_results_ins, net_premiums_written_summary_of_business_results_ins_unit_ref, net_sales_summary_of_business_results, net_sales_summary_of_business_results_unit_ref, number_of_employees, number_of_employees_unit_ref, operating_revenue1_summary_of_business_results, operating_revenue1_summary_of_business_results_unit_ref, operating_revenue2_summary_of_business_results, operating_revenue2_summary_of_business_results_unit_ref, ordinary_income_loss_summary_of_business_results, ordinary_income_loss_summary_of_business_results_unit_ref, ordinary_income_summary_of_business_results, ordinary_income_summary_of_business_results_unit_ref, period, total_assets_summary_of_business_results, total_assets_summary_of_business_results_unit_ref].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



284
285
286
287
288
# File 'lib/gbizinfo/models/management_index.rb', line 284

def list_invalid_properties
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
  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



415
416
417
# File 'lib/gbizinfo/models/management_index.rb', line 415

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



421
422
423
424
425
426
427
428
429
430
431
432
433
# File 'lib/gbizinfo/models/management_index.rb', line 421

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    if value.nil?
      is_nullable = self.class.openapi_nullable.include?(attr)
      next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
    end

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



409
410
411
# File 'lib/gbizinfo/models/management_index.rb', line 409

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



292
293
294
295
# File 'lib/gbizinfo/models/management_index.rb', line 292

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  true
end