Class: Intrinio::ETFNavFlow

Inherits:
Object
  • Object
show all
Defined in:
lib/intrinio-sdk/models/etf_nav_flow.rb

Overview

NAV (Net Asset Value) and flows data for an Exchange Traded Fund (ETF) on a specific date

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ETFNavFlow

Initializes the object

Parameters:

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

    Model attributes in the form of hash



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
291
292
293
294
295
296
297
298
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
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 208

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?(:'as_of_date')
    self.as_of_date = attributes[:'as_of_date']
  end

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

end

Instance Attribute Details

#as_of_dateObject

The date of the NAV flows data



19
20
21
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 19

def as_of_date
  @as_of_date
end

Five year annualized NAV return as a decimal (percentage)



55
56
57
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 55

def nav_annualized_return_five_year
  @nav_annualized_return_five_year
end

Annualized NAV return since inception as a decimal (percentage)



61
62
63
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 61

def nav_annualized_return_inception
  @nav_annualized_return_inception
end

Ten year annualized NAV return as a decimal (percentage)



58
59
60
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 58

def nav_annualized_return_ten_year
  @nav_annualized_return_ten_year
end

Three year annualized NAV return as a decimal (percentage)



52
53
54
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 52

def nav_annualized_return_three_year
  @nav_annualized_return_three_year
end

NAV return 1 year prior as a decimal (percentage)



37
38
39
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 37

def nav_return_1_year_prior
  @nav_return_1_year_prior
end

NAV return 2 years prior as a decimal (percentage)



40
41
42
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 40

def nav_return_2_year_prior
  @nav_return_2_year_prior
end

NAV return 3 years prior as a decimal (percentage)



43
44
45
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 43

def nav_return_3_year_prior
  @nav_return_3_year_prior
end

NAV return 4 years prior as a decimal (percentage)



46
47
48
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 46

def nav_return_4_year_prior
  @nav_return_4_year_prior
end

NAV return 5 years prior as a decimal (percentage)



49
50
51
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 49

def nav_return_5_year_prior
  @nav_return_5_year_prior
end

Daily NAV return as a decimal (percentage)



22
23
24
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 22

def nav_return_daily
  @nav_return_daily
end

One month NAV return as a decimal (percentage)



25
26
27
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 25

def nav_return_one_month
  @nav_return_one_month
end

One year NAV return as a decimal (percentage)



34
35
36
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 34

def nav_return_one_year
  @nav_return_one_year
end

Three month NAV return as a decimal (percentage)



28
29
30
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 28

def nav_return_three_month
  @nav_return_three_month
end

Year-to-date NAV return as a decimal (percentage)



31
32
33
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 31

def nav_return_ytd
  @nav_return_ytd
end

Net asset value adjusted for splits only



67
68
69
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 67

def nav_split_adjusted
  @nav_split_adjusted
end

Net asset value adjusted for both splits and dividends



70
71
72
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 70

def nav_split_dividend_adjusted
  @nav_split_dividend_adjusted
end

Net asset value unadjusted for splits or dividends



64
65
66
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 64

def nav_unadjusted
  @nav_unadjusted
end

#net_flows_1_year_priorObject

Net flows 1 year prior in dollars



97
98
99
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 97

def net_flows_1_year_prior
  @net_flows_1_year_prior
end

#net_flows_2_year_priorObject

Net flows 2 years prior in dollars



100
101
102
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 100

def net_flows_2_year_prior
  @net_flows_2_year_prior
end

#net_flows_3_year_priorObject

Net flows 3 years prior in dollars



103
104
105
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 103

def net_flows_3_year_prior
  @net_flows_3_year_prior
end

#net_flows_4_year_priorObject

Net flows 4 years prior in dollars



106
107
108
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 106

def net_flows_4_year_prior
  @net_flows_4_year_prior
end

#net_flows_5_year_priorObject

Net flows 5 years prior in dollars



109
110
111
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 109

def net_flows_5_year_prior
  @net_flows_5_year_prior
end

#net_flows_dailyObject

Daily net flows in dollars



73
74
75
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 73

def net_flows_daily
  @net_flows_daily
end

#net_flows_five_yearObject

Five year net flows in dollars



91
92
93
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 91

def net_flows_five_year
  @net_flows_five_year
end

#net_flows_inceptionObject

Net flows since inception in dollars



112
113
114
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 112

def net_flows_inception
  @net_flows_inception
end

#net_flows_one_monthObject

One month net flows in dollars



76
77
78
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 76

def net_flows_one_month
  @net_flows_one_month
end

#net_flows_one_yearObject

One year net flows in dollars



85
86
87
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 85

def net_flows_one_year
  @net_flows_one_year
end

#net_flows_ten_yearObject

Ten year net flows in dollars



94
95
96
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 94

def net_flows_ten_year
  @net_flows_ten_year
end

#net_flows_three_monthObject

Three month net flows in dollars



79
80
81
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 79

def net_flows_three_month
  @net_flows_three_month
end

#net_flows_three_yearObject

Three year net flows in dollars



88
89
90
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 88

def net_flows_three_year
  @net_flows_three_year
end

#net_flows_ytdObject

Year-to-date net flows in dollars



82
83
84
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 82

def net_flows_ytd
  @net_flows_ytd
end

#share_outstanding_split_adjustedObject

Shares outstanding adjusted for splits



118
119
120
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 118

def share_outstanding_split_adjusted
  @share_outstanding_split_adjusted
end

#share_outstanding_unadjustedObject

Shares outstanding unadjusted for splits



115
116
117
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 115

def share_outstanding_unadjusted
  @share_outstanding_unadjusted
end

#total_net_assetsObject

Total net assets in dollars



121
122
123
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 121

def total_net_assets
  @total_net_assets
end

Class Method Details

.attribute_mapObject

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



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
154
155
156
157
158
159
160
161
162
163
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 125

def self.attribute_map
  {
    :'as_of_date' => :'as_of_date',
    :'nav_return_daily' => :'nav_return_daily',
    :'nav_return_one_month' => :'nav_return_one_month',
    :'nav_return_three_month' => :'nav_return_three_month',
    :'nav_return_ytd' => :'nav_return_ytd',
    :'nav_return_one_year' => :'nav_return_one_year',
    :'nav_return_1_year_prior' => :'nav_return_1_year_prior',
    :'nav_return_2_year_prior' => :'nav_return_2_year_prior',
    :'nav_return_3_year_prior' => :'nav_return_3_year_prior',
    :'nav_return_4_year_prior' => :'nav_return_4_year_prior',
    :'nav_return_5_year_prior' => :'nav_return_5_year_prior',
    :'nav_annualized_return_three_year' => :'nav_annualized_return_three_year',
    :'nav_annualized_return_five_year' => :'nav_annualized_return_five_year',
    :'nav_annualized_return_ten_year' => :'nav_annualized_return_ten_year',
    :'nav_annualized_return_inception' => :'nav_annualized_return_inception',
    :'nav_unadjusted' => :'nav_unadjusted',
    :'nav_split_adjusted' => :'nav_split_adjusted',
    :'nav_split_dividend_adjusted' => :'nav_split_dividend_adjusted',
    :'net_flows_daily' => :'net_flows_daily',
    :'net_flows_one_month' => :'net_flows_one_month',
    :'net_flows_three_month' => :'net_flows_three_month',
    :'net_flows_ytd' => :'net_flows_ytd',
    :'net_flows_one_year' => :'net_flows_one_year',
    :'net_flows_three_year' => :'net_flows_three_year',
    :'net_flows_five_year' => :'net_flows_five_year',
    :'net_flows_ten_year' => :'net_flows_ten_year',
    :'net_flows_1_year_prior' => :'net_flows_1_year_prior',
    :'net_flows_2_year_prior' => :'net_flows_2_year_prior',
    :'net_flows_3_year_prior' => :'net_flows_3_year_prior',
    :'net_flows_4_year_prior' => :'net_flows_4_year_prior',
    :'net_flows_5_year_prior' => :'net_flows_5_year_prior',
    :'net_flows_inception' => :'net_flows_inception',
    :'share_outstanding_unadjusted' => :'share_outstanding_unadjusted',
    :'share_outstanding_split_adjusted' => :'share_outstanding_split_adjusted',
    :'total_net_assets' => :'total_net_assets'
  }
end

.swagger_typesObject

Attribute type mapping.



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
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 166

def self.swagger_types
  {
    :'as_of_date' => :'Date',
    :'nav_return_daily' => :'Float',
    :'nav_return_one_month' => :'Float',
    :'nav_return_three_month' => :'Float',
    :'nav_return_ytd' => :'Float',
    :'nav_return_one_year' => :'Float',
    :'nav_return_1_year_prior' => :'Float',
    :'nav_return_2_year_prior' => :'Float',
    :'nav_return_3_year_prior' => :'Float',
    :'nav_return_4_year_prior' => :'Float',
    :'nav_return_5_year_prior' => :'Float',
    :'nav_annualized_return_three_year' => :'Float',
    :'nav_annualized_return_five_year' => :'Float',
    :'nav_annualized_return_ten_year' => :'Float',
    :'nav_annualized_return_inception' => :'Float',
    :'nav_unadjusted' => :'Float',
    :'nav_split_adjusted' => :'Float',
    :'nav_split_dividend_adjusted' => :'Float',
    :'net_flows_daily' => :'Float',
    :'net_flows_one_month' => :'Float',
    :'net_flows_three_month' => :'Float',
    :'net_flows_ytd' => :'Float',
    :'net_flows_one_year' => :'Float',
    :'net_flows_three_year' => :'Float',
    :'net_flows_five_year' => :'Float',
    :'net_flows_ten_year' => :'Float',
    :'net_flows_1_year_prior' => :'Float',
    :'net_flows_2_year_prior' => :'Float',
    :'net_flows_3_year_prior' => :'Float',
    :'net_flows_4_year_prior' => :'Float',
    :'net_flows_5_year_prior' => :'Float',
    :'net_flows_inception' => :'Float',
    :'share_outstanding_unadjusted' => :'Float',
    :'share_outstanding_split_adjusted' => :'Float',
    :'total_net_assets' => :'Float'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



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
406
407
408
409
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 371

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      as_of_date == o.as_of_date &&
      nav_return_daily == o.nav_return_daily &&
      nav_return_one_month == o.nav_return_one_month &&
      nav_return_three_month == o.nav_return_three_month &&
      nav_return_ytd == o.nav_return_ytd &&
      nav_return_one_year == o.nav_return_one_year &&
      nav_return_1_year_prior == o.nav_return_1_year_prior &&
      nav_return_2_year_prior == o.nav_return_2_year_prior &&
      nav_return_3_year_prior == o.nav_return_3_year_prior &&
      nav_return_4_year_prior == o.nav_return_4_year_prior &&
      nav_return_5_year_prior == o.nav_return_5_year_prior &&
      nav_annualized_return_three_year == o.nav_annualized_return_three_year &&
      nav_annualized_return_five_year == o.nav_annualized_return_five_year &&
      nav_annualized_return_ten_year == o.nav_annualized_return_ten_year &&
      nav_annualized_return_inception == o.nav_annualized_return_inception &&
      nav_unadjusted == o.nav_unadjusted &&
      nav_split_adjusted == o.nav_split_adjusted &&
      nav_split_dividend_adjusted == o.nav_split_dividend_adjusted &&
      net_flows_daily == o.net_flows_daily &&
      net_flows_one_month == o.net_flows_one_month &&
      net_flows_three_month == o.net_flows_three_month &&
      net_flows_ytd == o.net_flows_ytd &&
      net_flows_one_year == o.net_flows_one_year &&
      net_flows_three_year == o.net_flows_three_year &&
      net_flows_five_year == o.net_flows_five_year &&
      net_flows_ten_year == o.net_flows_ten_year &&
      net_flows_1_year_prior == o.net_flows_1_year_prior &&
      net_flows_2_year_prior == o.net_flows_2_year_prior &&
      net_flows_3_year_prior == o.net_flows_3_year_prior &&
      net_flows_4_year_prior == o.net_flows_4_year_prior &&
      net_flows_5_year_prior == o.net_flows_5_year_prior &&
      net_flows_inception == o.net_flows_inception &&
      share_outstanding_unadjusted == o.share_outstanding_unadjusted &&
      share_outstanding_split_adjusted == o.share_outstanding_split_adjusted &&
      total_net_assets == o.total_net_assets
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



447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 447

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 = Intrinio.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



513
514
515
516
517
518
519
520
521
522
523
524
525
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 513

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



426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 426

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


413
414
415
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 413

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



419
420
421
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 419

def hash
  [as_of_date, nav_return_daily, nav_return_one_month, nav_return_three_month, nav_return_ytd, nav_return_one_year, nav_return_1_year_prior, nav_return_2_year_prior, nav_return_3_year_prior, nav_return_4_year_prior, nav_return_5_year_prior, nav_annualized_return_three_year, nav_annualized_return_five_year, nav_annualized_return_ten_year, nav_annualized_return_inception, nav_unadjusted, nav_split_adjusted, nav_split_dividend_adjusted, net_flows_daily, net_flows_one_month, net_flows_three_month, net_flows_ytd, net_flows_one_year, net_flows_three_year, net_flows_five_year, net_flows_ten_year, net_flows_1_year_prior, net_flows_2_year_prior, net_flows_3_year_prior, net_flows_4_year_prior, net_flows_5_year_prior, net_flows_inception, share_outstanding_unadjusted, share_outstanding_split_adjusted, total_net_assets].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



358
359
360
361
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 358

def list_invalid_properties
  invalid_properties = Array.new
  return 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



493
494
495
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 493

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



499
500
501
502
503
504
505
506
507
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 499

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



487
488
489
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 487

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



365
366
367
# File 'lib/intrinio-sdk/models/etf_nav_flow.rb', line 365

def valid?
  return true
end