Class: Intrinio::ETFNavFlows
- Inherits:
-
Object
- Object
- Intrinio::ETFNavFlows
- Defined in:
- lib/intrinio-sdk/models/etf_nav_flows.rb
Instance Attribute Summary collapse
-
#as_of_date ⇒ Object
The date of the NAV flows data.
-
#etf ⇒ Object
A brief summary of the ETF to which these nav flows refer.
-
#messages ⇒ Object
Any messages, warnings, or additional information about the data.
-
#nav_annualized_return_five_year ⇒ Object
Five year annualized NAV return as a decimal (percentage).
-
#nav_annualized_return_inception ⇒ Object
Annualized NAV return since inception as a decimal (percentage).
-
#nav_annualized_return_ten_year ⇒ Object
Ten year annualized NAV return as a decimal (percentage).
-
#nav_annualized_return_three_year ⇒ Object
Three year annualized NAV return as a decimal (percentage).
-
#nav_return_1_year_prior ⇒ Object
NAV return 1 year prior as a decimal (percentage).
-
#nav_return_2_year_prior ⇒ Object
NAV return 2 years prior as a decimal (percentage).
-
#nav_return_3_year_prior ⇒ Object
NAV return 3 years prior as a decimal (percentage).
-
#nav_return_4_year_prior ⇒ Object
NAV return 4 years prior as a decimal (percentage).
-
#nav_return_5_year_prior ⇒ Object
NAV return 5 years prior as a decimal (percentage).
-
#nav_return_daily ⇒ Object
Daily NAV return as a decimal (percentage).
-
#nav_return_one_month ⇒ Object
One month NAV return as a decimal (percentage).
-
#nav_return_one_year ⇒ Object
One year NAV return as a decimal (percentage).
-
#nav_return_three_month ⇒ Object
Three month NAV return as a decimal (percentage).
-
#nav_return_ytd ⇒ Object
Year-to-date NAV return as a decimal (percentage).
-
#nav_split_adjusted ⇒ Object
Net asset value adjusted for splits only.
-
#nav_split_dividend_adjusted ⇒ Object
Net asset value adjusted for both splits and dividends.
-
#nav_unadjusted ⇒ Object
Net asset value unadjusted for splits or dividends.
-
#net_flows_1_year_prior ⇒ Object
Net flows 1 year prior in dollars.
-
#net_flows_2_year_prior ⇒ Object
Net flows 2 years prior in dollars.
-
#net_flows_3_year_prior ⇒ Object
Net flows 3 years prior in dollars.
-
#net_flows_4_year_prior ⇒ Object
Net flows 4 years prior in dollars.
-
#net_flows_5_year_prior ⇒ Object
Net flows 5 years prior in dollars.
-
#net_flows_daily ⇒ Object
Daily net flows in dollars.
-
#net_flows_five_year ⇒ Object
Five year net flows in dollars.
-
#net_flows_inception ⇒ Object
Net flows since inception in dollars.
-
#net_flows_one_month ⇒ Object
One month net flows in dollars.
-
#net_flows_one_year ⇒ Object
One year net flows in dollars.
-
#net_flows_ten_year ⇒ Object
Ten year net flows in dollars.
-
#net_flows_three_month ⇒ Object
Three month net flows in dollars.
-
#net_flows_three_year ⇒ Object
Three year net flows in dollars.
-
#net_flows_ytd ⇒ Object
Year-to-date net flows in dollars.
-
#share_outstanding_split_adjusted ⇒ Object
Shares outstanding adjusted for splits.
-
#share_outstanding_unadjusted ⇒ Object
Shares outstanding unadjusted for splits.
-
#total_net_assets ⇒ Object
Total net assets in dollars.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ ETFNavFlows
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ ETFNavFlows
Initializes the object
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 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 218 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 if attributes.has_key?(:'etf') self.etf = attributes[:'etf'] end if attributes.has_key?(:'messages') if (value = attributes[:'messages']).is_a?(Array) self. = value end end end |
Instance Attribute Details
#as_of_date ⇒ Object
The date of the NAV flows data
19 20 21 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 19 def as_of_date @as_of_date end |
#etf ⇒ Object
A brief summary of the ETF to which these nav flows refer
124 125 126 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 124 def etf @etf end |
#messages ⇒ Object
Any messages, warnings, or additional information about the data
127 128 129 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 127 def end |
#nav_annualized_return_five_year ⇒ Object
Five year annualized NAV return as a decimal (percentage)
55 56 57 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 55 def nav_annualized_return_five_year @nav_annualized_return_five_year end |
#nav_annualized_return_inception ⇒ Object
Annualized NAV return since inception as a decimal (percentage)
61 62 63 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 61 def nav_annualized_return_inception @nav_annualized_return_inception end |
#nav_annualized_return_ten_year ⇒ Object
Ten year annualized NAV return as a decimal (percentage)
58 59 60 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 58 def nav_annualized_return_ten_year @nav_annualized_return_ten_year end |
#nav_annualized_return_three_year ⇒ Object
Three year annualized NAV return as a decimal (percentage)
52 53 54 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 52 def nav_annualized_return_three_year @nav_annualized_return_three_year end |
#nav_return_1_year_prior ⇒ Object
NAV return 1 year prior as a decimal (percentage)
37 38 39 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 37 def nav_return_1_year_prior @nav_return_1_year_prior end |
#nav_return_2_year_prior ⇒ Object
NAV return 2 years prior as a decimal (percentage)
40 41 42 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 40 def nav_return_2_year_prior @nav_return_2_year_prior end |
#nav_return_3_year_prior ⇒ Object
NAV return 3 years prior as a decimal (percentage)
43 44 45 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 43 def nav_return_3_year_prior @nav_return_3_year_prior end |
#nav_return_4_year_prior ⇒ Object
NAV return 4 years prior as a decimal (percentage)
46 47 48 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 46 def nav_return_4_year_prior @nav_return_4_year_prior end |
#nav_return_5_year_prior ⇒ Object
NAV return 5 years prior as a decimal (percentage)
49 50 51 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 49 def nav_return_5_year_prior @nav_return_5_year_prior end |
#nav_return_daily ⇒ Object
Daily NAV return as a decimal (percentage)
22 23 24 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 22 def nav_return_daily @nav_return_daily end |
#nav_return_one_month ⇒ Object
One month NAV return as a decimal (percentage)
25 26 27 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 25 def nav_return_one_month @nav_return_one_month end |
#nav_return_one_year ⇒ Object
One year NAV return as a decimal (percentage)
34 35 36 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 34 def nav_return_one_year @nav_return_one_year end |
#nav_return_three_month ⇒ Object
Three month NAV return as a decimal (percentage)
28 29 30 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 28 def nav_return_three_month @nav_return_three_month end |
#nav_return_ytd ⇒ Object
Year-to-date NAV return as a decimal (percentage)
31 32 33 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 31 def nav_return_ytd @nav_return_ytd end |
#nav_split_adjusted ⇒ Object
Net asset value adjusted for splits only
67 68 69 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 67 def nav_split_adjusted @nav_split_adjusted end |
#nav_split_dividend_adjusted ⇒ Object
Net asset value adjusted for both splits and dividends
70 71 72 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 70 def nav_split_dividend_adjusted @nav_split_dividend_adjusted end |
#nav_unadjusted ⇒ Object
Net asset value unadjusted for splits or dividends
64 65 66 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 64 def nav_unadjusted @nav_unadjusted end |
#net_flows_1_year_prior ⇒ Object
Net flows 1 year prior in dollars
97 98 99 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 97 def net_flows_1_year_prior @net_flows_1_year_prior end |
#net_flows_2_year_prior ⇒ Object
Net flows 2 years prior in dollars
100 101 102 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 100 def net_flows_2_year_prior @net_flows_2_year_prior end |
#net_flows_3_year_prior ⇒ Object
Net flows 3 years prior in dollars
103 104 105 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 103 def net_flows_3_year_prior @net_flows_3_year_prior end |
#net_flows_4_year_prior ⇒ Object
Net flows 4 years prior in dollars
106 107 108 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 106 def net_flows_4_year_prior @net_flows_4_year_prior end |
#net_flows_5_year_prior ⇒ Object
Net flows 5 years prior in dollars
109 110 111 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 109 def net_flows_5_year_prior @net_flows_5_year_prior end |
#net_flows_daily ⇒ Object
Daily net flows in dollars
73 74 75 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 73 def net_flows_daily @net_flows_daily end |
#net_flows_five_year ⇒ Object
Five year net flows in dollars
91 92 93 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 91 def net_flows_five_year @net_flows_five_year end |
#net_flows_inception ⇒ Object
Net flows since inception in dollars
112 113 114 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 112 def net_flows_inception @net_flows_inception end |
#net_flows_one_month ⇒ Object
One month net flows in dollars
76 77 78 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 76 def net_flows_one_month @net_flows_one_month end |
#net_flows_one_year ⇒ Object
One year net flows in dollars
85 86 87 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 85 def net_flows_one_year @net_flows_one_year end |
#net_flows_ten_year ⇒ Object
Ten year net flows in dollars
94 95 96 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 94 def net_flows_ten_year @net_flows_ten_year end |
#net_flows_three_month ⇒ Object
Three month net flows in dollars
79 80 81 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 79 def net_flows_three_month @net_flows_three_month end |
#net_flows_three_year ⇒ Object
Three year net flows in dollars
88 89 90 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 88 def net_flows_three_year @net_flows_three_year end |
#net_flows_ytd ⇒ Object
Year-to-date net flows in dollars
82 83 84 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 82 def net_flows_ytd @net_flows_ytd end |
#share_outstanding_split_adjusted ⇒ Object
Shares outstanding adjusted for splits
118 119 120 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 118 def share_outstanding_split_adjusted @share_outstanding_split_adjusted end |
#share_outstanding_unadjusted ⇒ Object
Shares outstanding unadjusted for splits
115 116 117 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 115 def share_outstanding_unadjusted @share_outstanding_unadjusted end |
#total_net_assets ⇒ Object
Total net assets in dollars
121 122 123 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 121 def total_net_assets @total_net_assets end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 164 165 166 167 168 169 170 171 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 131 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', :'etf' => :'etf', :'messages' => :'messages' } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 174 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', :'etf' => :'ETFSummary', :'messages' => :'Array<String>' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
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 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 391 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 && etf == o.etf && == o. end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 469 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
535 536 537 538 539 540 541 542 543 544 545 546 547 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 535 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
448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 448 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
435 436 437 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 435 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
441 442 443 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 441 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, etf, ].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
378 379 380 381 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 378 def list_invalid_properties invalid_properties = Array.new return invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
515 516 517 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 515 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
521 522 523 524 525 526 527 528 529 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 521 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_s ⇒ String
Returns the string representation of the object
509 510 511 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 509 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
385 386 387 |
# File 'lib/intrinio-sdk/models/etf_nav_flows.rb', line 385 def valid? return true end |