intrinio-sdk 5.0.0 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -124
- data/docs/CompanyApi.md +2 -15
- data/docs/DataPointApi.md +0 -2
- data/docs/DataTagApi.md +0 -3
- data/docs/DividendRecord.md +1 -0
- data/docs/EarningsRecord.md +1 -0
- data/docs/FilingApi.md +0 -8
- data/docs/ForexApi.md +0 -3
- data/docs/Fundamental.md +1 -0
- data/docs/FundamentalsApi.md +0 -4
- data/docs/HistoricalDataApi.md +0 -1
- data/docs/IndexApi.md +0 -18
- data/docs/MunicipalityApi.md +0 -3
- data/docs/OptionsApi.md +1 -5
- data/docs/SecurityApi.md +0 -48
- data/docs/StockExchangeApi.md +0 -6
- data/docs/TechnicalApi.md +0 -3396
- data/docs/ZacksApi.md +0 -3
- data/intrinio-sdk.gemspec +2 -2
- data/lib/intrinio-sdk.rb +2 -54
- data/lib/intrinio-sdk/api/company_api.rb +4 -4
- data/lib/intrinio-sdk/api/data_point_api.rb +2 -2
- data/lib/intrinio-sdk/api/data_tag_api.rb +2 -2
- data/lib/intrinio-sdk/api/filing_api.rb +2 -2
- data/lib/intrinio-sdk/api/forex_api.rb +2 -2
- data/lib/intrinio-sdk/api/fundamentals_api.rb +2 -2
- data/lib/intrinio-sdk/api/historical_data_api.rb +2 -2
- data/lib/intrinio-sdk/api/index_api.rb +2 -2
- data/lib/intrinio-sdk/api/municipality_api.rb +2 -2
- data/lib/intrinio-sdk/api/options_api.rb +2 -2
- data/lib/intrinio-sdk/api/security_api.rb +2 -2
- data/lib/intrinio-sdk/api/stock_exchange_api.rb +2 -2
- data/lib/intrinio-sdk/api/technical_api.rb +2 -3101
- data/lib/intrinio-sdk/api/zacks_api.rb +2 -2
- data/lib/intrinio-sdk/api_client.rb +2 -2
- data/lib/intrinio-sdk/api_error.rb +2 -2
- data/lib/intrinio-sdk/configuration.rb +2 -2
- data/lib/intrinio-sdk/models/accumulation_distribution_index_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_companies.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_companies_search.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_company_filings.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_company_fundamentals.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_company_historical_data.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_company_news.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_company_securities.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_data_tags.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_data_tags_search.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_economic_index_historical_data.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_economic_indices.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_economic_indices_search.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_filing_fundamentals.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_filing_notes.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_filing_notes_search.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_filings.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_forex_currencies.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_forex_pairs.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_forex_prices.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_historical_data.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_initial_public_offerings.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_municipalities.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_municipalitiy_financials.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_news.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_option_prices.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_options.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_options_chain.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_options_expirations.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_reported_financials.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_securities.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_securities_search.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_accumulation_distribution_index.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_average_daily_trading_volume.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_average_directional_index.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_average_true_range.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_awesome_oscillator.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_bollinger_bands.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_chaikin_money_flow.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_commodity_channel_index.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_detrended_price_oscillator.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_donchian_channel.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_ease_of_movement.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_force_index.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_historical_data.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_ichimoku_kinko_hyo.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_intraday_prices.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_keltner_channel.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_know_sure_thing.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_mass_index.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_money_flow_index.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_moving_average_convergence_divergence.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_negative_volume_index.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_on_balance_volume.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_on_balance_volume_mean.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_relative_strength_index.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_simple_moving_average.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_stochastic_oscillator.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_stock_price_adjustments.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_stock_prices.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_triple_exponential_average.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_true_strength_index.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_ultimate_oscillator.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_volume_price_trend.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_volume_weighted_average_price.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_vortex_indicator.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_williams_r.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_zacks_analyst_ratings.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_zacks_analyst_ratings_snapshot.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_zacks_eps_surprises.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_zacks_sales_surprises.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_sic_index_historical_data.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_sic_indices.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_sic_indices_search.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_standardized_financials.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_stock_exchange_realtime_stock_prices.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_stock_exchange_securities.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_price_adjustments.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_prices.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_stock_exchanges.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_stock_market_index_historical_data.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_stock_market_indices.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_stock_market_indices_search.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_zacks_analyst_ratings.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_zacks_eps_surprises.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_zacks_sales_surprises.rb +2 -2
- data/lib/intrinio-sdk/models/average_daily_trading_volume_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/average_directional_index_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/average_true_range_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/awesome_oscillator_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/bollinger_bands_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/chaikin_money_flow_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/commodity_channel_index_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/company.rb +2 -2
- data/lib/intrinio-sdk/models/company_filing.rb +2 -2
- data/lib/intrinio-sdk/models/company_initial_public_offering.rb +2 -2
- data/lib/intrinio-sdk/models/company_news.rb +2 -2
- data/lib/intrinio-sdk/models/company_news_summary.rb +2 -2
- data/lib/intrinio-sdk/models/company_summary.rb +2 -2
- data/lib/intrinio-sdk/models/data_tag.rb +2 -2
- data/lib/intrinio-sdk/models/data_tag_summary.rb +2 -2
- data/lib/intrinio-sdk/models/detrended_price_oscillator_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/dividend_record.rb +13 -3
- data/lib/intrinio-sdk/models/donchian_channel_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/earnings_record.rb +13 -3
- data/lib/intrinio-sdk/models/ease_of_movement_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/economic_index.rb +2 -2
- data/lib/intrinio-sdk/models/economic_index_summary.rb +2 -2
- data/lib/intrinio-sdk/models/filing.rb +2 -2
- data/lib/intrinio-sdk/models/filing_note.rb +2 -2
- data/lib/intrinio-sdk/models/filing_note_filing.rb +2 -2
- data/lib/intrinio-sdk/models/filing_note_summary.rb +2 -2
- data/lib/intrinio-sdk/models/filing_summary.rb +2 -2
- data/lib/intrinio-sdk/models/force_index_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/forex_currency.rb +2 -2
- data/lib/intrinio-sdk/models/forex_pair.rb +2 -2
- data/lib/intrinio-sdk/models/forex_price.rb +2 -2
- data/lib/intrinio-sdk/models/fundamental.rb +13 -3
- data/lib/intrinio-sdk/models/fundamental_summary.rb +2 -2
- data/lib/intrinio-sdk/models/historical_data.rb +2 -2
- data/lib/intrinio-sdk/models/ichimoku_kinko_hyo_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/intraday_stock_price.rb +2 -2
- data/lib/intrinio-sdk/models/keltner_channel_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/know_sure_thing_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/mass_index_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/money_flow_index_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/moving_average_convergence_divergence_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/municipality.rb +2 -2
- data/lib/intrinio-sdk/models/municipality_financial.rb +2 -2
- data/lib/intrinio-sdk/models/negative_volume_index_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/on_balance_volume_mean_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/on_balance_volume_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/option.rb +2 -2
- data/lib/intrinio-sdk/models/option_chain.rb +2 -2
- data/lib/intrinio-sdk/models/option_price.rb +2 -2
- data/lib/intrinio-sdk/models/realtime_stock_price.rb +2 -2
- data/lib/intrinio-sdk/models/realtime_stock_price_security.rb +2 -2
- data/lib/intrinio-sdk/models/relative_strength_index_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/reported_financial.rb +2 -2
- data/lib/intrinio-sdk/models/reported_financial_dimension.rb +2 -2
- data/lib/intrinio-sdk/models/reported_tag.rb +2 -2
- data/lib/intrinio-sdk/models/security.rb +2 -2
- data/lib/intrinio-sdk/models/security_screen_clause.rb +2 -2
- data/lib/intrinio-sdk/models/security_screen_group.rb +2 -2
- data/lib/intrinio-sdk/models/security_screen_result.rb +2 -2
- data/lib/intrinio-sdk/models/security_screen_result_data.rb +2 -2
- data/lib/intrinio-sdk/models/security_summary.rb +2 -2
- data/lib/intrinio-sdk/models/sic_index.rb +2 -2
- data/lib/intrinio-sdk/models/simple_moving_average_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/standardized_financial.rb +2 -2
- data/lib/intrinio-sdk/models/stochastic_oscillator_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/stock_exchange.rb +2 -2
- data/lib/intrinio-sdk/models/stock_market_index.rb +2 -2
- data/lib/intrinio-sdk/models/stock_market_index_summary.rb +2 -2
- data/lib/intrinio-sdk/models/stock_price.rb +2 -2
- data/lib/intrinio-sdk/models/stock_price_adjustment.rb +2 -2
- data/lib/intrinio-sdk/models/stock_price_adjustment_summary.rb +2 -2
- data/lib/intrinio-sdk/models/stock_price_summary.rb +2 -2
- data/lib/intrinio-sdk/models/technical_indicator.rb +2 -2
- data/lib/intrinio-sdk/models/triple_exponential_average_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/true_strength_index_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/ultimate_oscillator_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/volume_price_trend_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/volume_weighted_average_price_value.rb +2 -2
- data/lib/intrinio-sdk/models/vortex_indicator_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/williams_r_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/zacks_analyst_rating.rb +2 -2
- data/lib/intrinio-sdk/models/zacks_analyst_rating_snapshot.rb +2 -2
- data/lib/intrinio-sdk/models/zacks_analyst_rating_summary.rb +2 -2
- data/lib/intrinio-sdk/models/zacks_eps_surprise.rb +2 -2
- data/lib/intrinio-sdk/models/zacks_eps_surprise_summary.rb +2 -2
- data/lib/intrinio-sdk/models/zacks_sales_surprise.rb +2 -2
- data/lib/intrinio-sdk/models/zacks_sales_surprise_summary.rb +2 -2
- data/lib/intrinio-sdk/version.rb +3 -3
- data/spec/api/company_api_spec.rb +3 -3
- data/spec/api/data_point_api_spec.rb +2 -2
- data/spec/api/data_tag_api_spec.rb +2 -2
- data/spec/api/filing_api_spec.rb +2 -2
- data/spec/api/forex_api_spec.rb +2 -2
- data/spec/api/fundamentals_api_spec.rb +2 -2
- data/spec/api/historical_data_api_spec.rb +2 -2
- data/spec/api/index_api_spec.rb +2 -2
- data/spec/api/municipality_api_spec.rb +2 -2
- data/spec/api/options_api_spec.rb +2 -2
- data/spec/api/security_api_spec.rb +2 -2
- data/spec/api/stock_exchange_api_spec.rb +2 -2
- data/spec/api/technical_api_spec.rb +2 -739
- data/spec/api/zacks_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/accumulation_distribution_index_technical_value_spec.rb +2 -2
- data/spec/models/api_response_companies_search_spec.rb +2 -2
- data/spec/models/api_response_companies_spec.rb +2 -2
- data/spec/models/api_response_company_filings_spec.rb +2 -2
- data/spec/models/api_response_company_fundamentals_spec.rb +2 -2
- data/spec/models/api_response_company_historical_data_spec.rb +2 -2
- data/spec/models/api_response_company_news_spec.rb +2 -2
- data/spec/models/api_response_company_securities_spec.rb +2 -2
- data/spec/models/api_response_data_tags_search_spec.rb +2 -2
- data/spec/models/api_response_data_tags_spec.rb +2 -2
- data/spec/models/api_response_economic_index_historical_data_spec.rb +2 -2
- data/spec/models/api_response_economic_indices_search_spec.rb +2 -2
- data/spec/models/api_response_economic_indices_spec.rb +2 -2
- data/spec/models/api_response_filing_fundamentals_spec.rb +2 -2
- data/spec/models/api_response_filing_notes_search_spec.rb +2 -2
- data/spec/models/api_response_filing_notes_spec.rb +2 -2
- data/spec/models/api_response_filings_spec.rb +2 -2
- data/spec/models/api_response_forex_currencies_spec.rb +2 -2
- data/spec/models/api_response_forex_pairs_spec.rb +2 -2
- data/spec/models/api_response_forex_prices_spec.rb +2 -2
- data/spec/models/api_response_historical_data_spec.rb +2 -2
- data/spec/models/api_response_initial_public_offerings_spec.rb +2 -2
- data/spec/models/api_response_municipalities_spec.rb +2 -2
- data/spec/models/api_response_municipalitiy_financials_spec.rb +2 -2
- data/spec/models/api_response_news_spec.rb +2 -2
- data/spec/models/api_response_option_prices_spec.rb +2 -2
- data/spec/models/api_response_options_chain_spec.rb +2 -2
- data/spec/models/api_response_options_expirations_spec.rb +2 -2
- data/spec/models/api_response_options_spec.rb +2 -2
- data/spec/models/api_response_reported_financials_spec.rb +2 -2
- data/spec/models/api_response_securities_search_spec.rb +2 -2
- data/spec/models/api_response_securities_spec.rb +2 -2
- data/spec/models/api_response_security_accumulation_distribution_index_spec.rb +2 -2
- data/spec/models/api_response_security_average_daily_trading_volume_spec.rb +2 -2
- data/spec/models/api_response_security_average_directional_index_spec.rb +2 -2
- data/spec/models/api_response_security_average_true_range_spec.rb +2 -2
- data/spec/models/api_response_security_awesome_oscillator_spec.rb +2 -2
- data/spec/models/api_response_security_bollinger_bands_spec.rb +2 -2
- data/spec/models/api_response_security_chaikin_money_flow_spec.rb +2 -2
- data/spec/models/api_response_security_commodity_channel_index_spec.rb +2 -2
- data/spec/models/api_response_security_detrended_price_oscillator_spec.rb +2 -2
- data/spec/models/api_response_security_donchian_channel_spec.rb +2 -2
- data/spec/models/api_response_security_ease_of_movement_spec.rb +2 -2
- data/spec/models/api_response_security_force_index_spec.rb +2 -2
- data/spec/models/api_response_security_historical_data_spec.rb +2 -2
- data/spec/models/api_response_security_ichimoku_kinko_hyo_spec.rb +2 -2
- data/spec/models/api_response_security_intraday_prices_spec.rb +2 -2
- data/spec/models/api_response_security_keltner_channel_spec.rb +2 -2
- data/spec/models/api_response_security_know_sure_thing_spec.rb +2 -2
- data/spec/models/api_response_security_mass_index_spec.rb +2 -2
- data/spec/models/api_response_security_money_flow_index_spec.rb +2 -2
- data/spec/models/api_response_security_moving_average_convergence_divergence_spec.rb +2 -2
- data/spec/models/api_response_security_negative_volume_index_spec.rb +2 -2
- data/spec/models/api_response_security_on_balance_volume_mean_spec.rb +2 -2
- data/spec/models/api_response_security_on_balance_volume_spec.rb +2 -2
- data/spec/models/api_response_security_relative_strength_index_spec.rb +2 -2
- data/spec/models/api_response_security_simple_moving_average_spec.rb +2 -2
- data/spec/models/api_response_security_stochastic_oscillator_spec.rb +2 -2
- data/spec/models/api_response_security_stock_price_adjustments_spec.rb +2 -2
- data/spec/models/api_response_security_stock_prices_spec.rb +2 -2
- data/spec/models/api_response_security_triple_exponential_average_spec.rb +2 -2
- data/spec/models/api_response_security_true_strength_index_spec.rb +2 -2
- data/spec/models/api_response_security_ultimate_oscillator_spec.rb +2 -2
- data/spec/models/api_response_security_volume_price_trend_spec.rb +2 -2
- data/spec/models/api_response_security_volume_weighted_average_price_spec.rb +2 -2
- data/spec/models/api_response_security_vortex_indicator_spec.rb +2 -2
- data/spec/models/api_response_security_williams_r_spec.rb +2 -2
- data/spec/models/api_response_security_zacks_analyst_ratings_snapshot_spec.rb +2 -2
- data/spec/models/api_response_security_zacks_analyst_ratings_spec.rb +2 -2
- data/spec/models/api_response_security_zacks_eps_surprises_spec.rb +2 -2
- data/spec/models/api_response_security_zacks_sales_surprises_spec.rb +2 -2
- data/spec/models/api_response_sic_index_historical_data_spec.rb +2 -2
- data/spec/models/api_response_sic_indices_search_spec.rb +2 -2
- data/spec/models/api_response_sic_indices_spec.rb +2 -2
- data/spec/models/api_response_standardized_financials_spec.rb +2 -2
- data/spec/models/api_response_stock_exchange_realtime_stock_prices_spec.rb +2 -2
- data/spec/models/api_response_stock_exchange_securities_spec.rb +2 -2
- data/spec/models/api_response_stock_exchange_stock_price_adjustments_spec.rb +2 -2
- data/spec/models/api_response_stock_exchange_stock_prices_spec.rb +2 -2
- data/spec/models/api_response_stock_exchanges_spec.rb +2 -2
- data/spec/models/api_response_stock_market_index_historical_data_spec.rb +2 -2
- data/spec/models/api_response_stock_market_indices_search_spec.rb +2 -2
- data/spec/models/api_response_stock_market_indices_spec.rb +2 -2
- data/spec/models/api_response_zacks_analyst_ratings_spec.rb +2 -2
- data/spec/models/api_response_zacks_eps_surprises_spec.rb +2 -2
- data/spec/models/api_response_zacks_sales_surprises_spec.rb +2 -2
- data/spec/models/average_daily_trading_volume_technical_value_spec.rb +2 -2
- data/spec/models/average_directional_index_technical_value_spec.rb +2 -2
- data/spec/models/average_true_range_technical_value_spec.rb +2 -2
- data/spec/models/awesome_oscillator_technical_value_spec.rb +2 -2
- data/spec/models/bollinger_bands_technical_value_spec.rb +2 -2
- data/spec/models/chaikin_money_flow_technical_value_spec.rb +2 -2
- data/spec/models/commodity_channel_index_technical_value_spec.rb +2 -2
- data/spec/models/company_filing_spec.rb +2 -2
- data/spec/models/company_initial_public_offering_spec.rb +2 -2
- data/spec/models/company_news_spec.rb +2 -2
- data/spec/models/company_news_summary_spec.rb +2 -2
- data/spec/models/company_spec.rb +2 -2
- data/spec/models/company_summary_spec.rb +2 -2
- data/spec/models/data_tag_spec.rb +2 -2
- data/spec/models/data_tag_summary_spec.rb +2 -2
- data/spec/models/detrended_price_oscillator_technical_value_spec.rb +2 -2
- data/spec/models/dividend_record_spec.rb +8 -2
- data/spec/models/donchian_channel_technical_value_spec.rb +2 -2
- data/spec/models/earnings_record_spec.rb +8 -2
- data/spec/models/ease_of_movement_technical_value_spec.rb +2 -2
- data/spec/models/economic_index_spec.rb +2 -2
- data/spec/models/economic_index_summary_spec.rb +2 -2
- data/spec/models/filing_note_filing_spec.rb +2 -2
- data/spec/models/filing_note_spec.rb +2 -2
- data/spec/models/filing_note_summary_spec.rb +2 -2
- data/spec/models/filing_spec.rb +2 -2
- data/spec/models/filing_summary_spec.rb +2 -2
- data/spec/models/force_index_technical_value_spec.rb +2 -2
- data/spec/models/forex_currency_spec.rb +2 -2
- data/spec/models/forex_pair_spec.rb +2 -2
- data/spec/models/forex_price_spec.rb +2 -2
- data/spec/models/fundamental_spec.rb +8 -2
- data/spec/models/fundamental_summary_spec.rb +2 -2
- data/spec/models/historical_data_spec.rb +2 -2
- data/spec/models/ichimoku_kinko_hyo_technical_value_spec.rb +2 -2
- data/spec/models/intraday_stock_price_spec.rb +2 -2
- data/spec/models/keltner_channel_technical_value_spec.rb +2 -2
- data/spec/models/know_sure_thing_technical_value_spec.rb +2 -2
- data/spec/models/mass_index_technical_value_spec.rb +2 -2
- data/spec/models/money_flow_index_technical_value_spec.rb +2 -2
- data/spec/models/moving_average_convergence_divergence_technical_value_spec.rb +2 -2
- data/spec/models/municipality_financial_spec.rb +2 -2
- data/spec/models/municipality_spec.rb +2 -2
- data/spec/models/negative_volume_index_technical_value_spec.rb +2 -2
- data/spec/models/on_balance_volume_mean_technical_value_spec.rb +2 -2
- data/spec/models/on_balance_volume_technical_value_spec.rb +2 -2
- data/spec/models/option_chain_spec.rb +2 -2
- data/spec/models/option_price_spec.rb +2 -2
- data/spec/models/option_spec.rb +2 -2
- data/spec/models/realtime_stock_price_security_spec.rb +2 -2
- data/spec/models/realtime_stock_price_spec.rb +2 -2
- data/spec/models/relative_strength_index_technical_value_spec.rb +2 -2
- data/spec/models/reported_financial_dimension_spec.rb +2 -2
- data/spec/models/reported_financial_spec.rb +2 -2
- data/spec/models/reported_tag_spec.rb +2 -2
- data/spec/models/security_screen_clause_spec.rb +2 -2
- data/spec/models/security_screen_group_spec.rb +2 -2
- data/spec/models/security_screen_result_data_spec.rb +2 -2
- data/spec/models/security_screen_result_spec.rb +2 -2
- data/spec/models/security_spec.rb +2 -2
- data/spec/models/security_summary_spec.rb +2 -2
- data/spec/models/sic_index_spec.rb +2 -2
- data/spec/models/simple_moving_average_technical_value_spec.rb +2 -2
- data/spec/models/standardized_financial_spec.rb +2 -2
- data/spec/models/stochastic_oscillator_technical_value_spec.rb +2 -2
- data/spec/models/stock_exchange_spec.rb +2 -2
- data/spec/models/stock_market_index_spec.rb +2 -2
- data/spec/models/stock_market_index_summary_spec.rb +2 -2
- data/spec/models/stock_price_adjustment_spec.rb +2 -2
- data/spec/models/stock_price_adjustment_summary_spec.rb +2 -2
- data/spec/models/stock_price_spec.rb +2 -2
- data/spec/models/stock_price_summary_spec.rb +2 -2
- data/spec/models/technical_indicator_spec.rb +2 -2
- data/spec/models/triple_exponential_average_technical_value_spec.rb +2 -2
- data/spec/models/true_strength_index_technical_value_spec.rb +2 -2
- data/spec/models/ultimate_oscillator_technical_value_spec.rb +2 -2
- data/spec/models/volume_price_trend_technical_value_spec.rb +2 -2
- data/spec/models/volume_weighted_average_price_value_spec.rb +2 -2
- data/spec/models/vortex_indicator_technical_value_spec.rb +2 -2
- data/spec/models/williams_r_technical_value_spec.rb +2 -2
- data/spec/models/zacks_analyst_rating_snapshot_spec.rb +2 -2
- data/spec/models/zacks_analyst_rating_spec.rb +2 -2
- data/spec/models/zacks_analyst_rating_summary_spec.rb +2 -2
- data/spec/models/zacks_eps_surprise_spec.rb +2 -2
- data/spec/models/zacks_eps_surprise_summary_spec.rb +2 -2
- data/spec/models/zacks_sales_surprise_spec.rb +2 -2
- data/spec/models/zacks_sales_surprise_summary_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +2 -210
- data/docs/ApiResponseCryptoAccumulationDistributionIndex.md +0 -37
- data/docs/ApiResponseCryptoAverageDailyTradingVolume.md +0 -37
- data/docs/ApiResponseCryptoAverageDirectionalIndex.md +0 -37
- data/docs/ApiResponseCryptoAverageTrueRange.md +0 -37
- data/docs/ApiResponseCryptoAwesomeOscillator.md +0 -37
- data/docs/ApiResponseCryptoBollingerBands.md +0 -37
- data/docs/ApiResponseCryptoBook.md +0 -36
- data/docs/ApiResponseCryptoBookAsks.md +0 -32
- data/docs/ApiResponseCryptoBookBids.md +0 -32
- data/docs/ApiResponseCryptoChaikinMoneyFlow.md +0 -37
- data/docs/ApiResponseCryptoCommodityChannelIndex.md +0 -37
- data/docs/ApiResponseCryptoCurrencies.md +0 -23
- data/docs/ApiResponseCryptoDetrendedPriceOscillator.md +0 -37
- data/docs/ApiResponseCryptoDonchianChannel.md +0 -37
- data/docs/ApiResponseCryptoEaseOfMovement.md +0 -37
- data/docs/ApiResponseCryptoExchanges.md +0 -23
- data/docs/ApiResponseCryptoForceIndex.md +0 -37
- data/docs/ApiResponseCryptoIchimokuKinkoHyo.md +0 -37
- data/docs/ApiResponseCryptoKeltnerChannel.md +0 -37
- data/docs/ApiResponseCryptoKnowSureThing.md +0 -37
- data/docs/ApiResponseCryptoMassIndex.md +0 -37
- data/docs/ApiResponseCryptoMoneyFlowIndex.md +0 -37
- data/docs/ApiResponseCryptoMovingAverageConvergenceDivergence.md +0 -37
- data/docs/ApiResponseCryptoNegativeVolumeIndex.md +0 -37
- data/docs/ApiResponseCryptoOnBalanceVolume.md +0 -37
- data/docs/ApiResponseCryptoOnBalanceVolumeMean.md +0 -37
- data/docs/ApiResponseCryptoPairs.md +0 -24
- data/docs/ApiResponseCryptoPrices.md +0 -33
- data/docs/ApiResponseCryptoRelativeStrengthIndex.md +0 -37
- data/docs/ApiResponseCryptoSimpleMovingAverage.md +0 -37
- data/docs/ApiResponseCryptoSnapshot.md +0 -31
- data/docs/ApiResponseCryptoStats.md +0 -23
- data/docs/ApiResponseCryptoStochasticOscillator.md +0 -37
- data/docs/ApiResponseCryptoTripleExponentialAverage.md +0 -37
- data/docs/ApiResponseCryptoTrueStrengthIndex.md +0 -37
- data/docs/ApiResponseCryptoUltimateOscillator.md +0 -37
- data/docs/ApiResponseCryptoVolumePriceTrend.md +0 -37
- data/docs/ApiResponseCryptoVolumeWeightedAveragePrice.md +0 -37
- data/docs/ApiResponseCryptoVortexIndicator.md +0 -37
- data/docs/ApiResponseCryptoWilliamsR.md +0 -37
- data/docs/CryptoApi.md +0 -4185
- data/docs/CryptoAsk.md +0 -21
- data/docs/CryptoBid.md +0 -21
- data/docs/CryptoBookEntry.md +0 -21
- data/docs/CryptoCurrency.md +0 -24
- data/docs/CryptoExchange.md +0 -25
- data/docs/CryptoExchangeSummary.md +0 -21
- data/docs/CryptoPair.md +0 -27
- data/docs/CryptoPairSummary.md +0 -21
- data/docs/CryptoPrice.md +0 -25
- data/docs/CryptoSnapshot.md +0 -34
- data/docs/CryptoStat.md +0 -27
- data/lib/intrinio-sdk/api/crypto_api.rb +0 -3660
- data/lib/intrinio-sdk/models/api_response_crypto_accumulation_distribution_index.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_average_daily_trading_volume.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_average_directional_index.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_average_true_range.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_awesome_oscillator.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_bollinger_bands.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_book.rb +0 -231
- data/lib/intrinio-sdk/models/api_response_crypto_book_asks.rb +0 -219
- data/lib/intrinio-sdk/models/api_response_crypto_book_bids.rb +0 -219
- data/lib/intrinio-sdk/models/api_response_crypto_chaikin_money_flow.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_commodity_channel_index.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_currencies.rb +0 -191
- data/lib/intrinio-sdk/models/api_response_crypto_detrended_price_oscillator.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_donchian_channel.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_ease_of_movement.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_exchanges.rb +0 -191
- data/lib/intrinio-sdk/models/api_response_crypto_force_index.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_ichimoku_kinko_hyo.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_keltner_channel.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_know_sure_thing.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_mass_index.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_money_flow_index.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_moving_average_convergence_divergence.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_negative_volume_index.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_on_balance_volume.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_on_balance_volume_mean.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_pairs.rb +0 -201
- data/lib/intrinio-sdk/models/api_response_crypto_prices.rb +0 -229
- data/lib/intrinio-sdk/models/api_response_crypto_relative_strength_index.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_simple_moving_average.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_snapshot.rb +0 -206
- data/lib/intrinio-sdk/models/api_response_crypto_stats.rb +0 -191
- data/lib/intrinio-sdk/models/api_response_crypto_stochastic_oscillator.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_triple_exponential_average.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_true_strength_index.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_ultimate_oscillator.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_volume_price_trend.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_volume_weighted_average_price.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_vortex_indicator.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_williams_r.rb +0 -238
- data/lib/intrinio-sdk/models/crypto_ask.rb +0 -199
- data/lib/intrinio-sdk/models/crypto_bid.rb +0 -199
- data/lib/intrinio-sdk/models/crypto_book_entry.rb +0 -199
- data/lib/intrinio-sdk/models/crypto_currency.rb +0 -229
- data/lib/intrinio-sdk/models/crypto_exchange.rb +0 -239
- data/lib/intrinio-sdk/models/crypto_exchange_summary.rb +0 -199
- data/lib/intrinio-sdk/models/crypto_pair.rb +0 -259
- data/lib/intrinio-sdk/models/crypto_pair_summary.rb +0 -199
- data/lib/intrinio-sdk/models/crypto_price.rb +0 -239
- data/lib/intrinio-sdk/models/crypto_snapshot.rb +0 -329
- data/lib/intrinio-sdk/models/crypto_stat.rb +0 -259
- data/spec/api/crypto_api_spec.rb +0 -903
- data/spec/models/api_response_crypto_accumulation_distribution_index_spec.rb +0 -72
- data/spec/models/api_response_crypto_average_daily_trading_volume_spec.rb +0 -72
- data/spec/models/api_response_crypto_average_directional_index_spec.rb +0 -72
- data/spec/models/api_response_crypto_average_true_range_spec.rb +0 -72
- data/spec/models/api_response_crypto_awesome_oscillator_spec.rb +0 -72
- data/spec/models/api_response_crypto_bollinger_bands_spec.rb +0 -72
- data/spec/models/api_response_crypto_book_asks_spec.rb +0 -60
- data/spec/models/api_response_crypto_book_bids_spec.rb +0 -60
- data/spec/models/api_response_crypto_book_spec.rb +0 -66
- data/spec/models/api_response_crypto_chaikin_money_flow_spec.rb +0 -72
- data/spec/models/api_response_crypto_commodity_channel_index_spec.rb +0 -72
- data/spec/models/api_response_crypto_currencies_spec.rb +0 -42
- data/spec/models/api_response_crypto_detrended_price_oscillator_spec.rb +0 -72
- data/spec/models/api_response_crypto_donchian_channel_spec.rb +0 -72
- data/spec/models/api_response_crypto_ease_of_movement_spec.rb +0 -72
- data/spec/models/api_response_crypto_exchanges_spec.rb +0 -42
- data/spec/models/api_response_crypto_force_index_spec.rb +0 -72
- data/spec/models/api_response_crypto_ichimoku_kinko_hyo_spec.rb +0 -72
- data/spec/models/api_response_crypto_keltner_channel_spec.rb +0 -72
- data/spec/models/api_response_crypto_know_sure_thing_spec.rb +0 -72
- data/spec/models/api_response_crypto_mass_index_spec.rb +0 -72
- data/spec/models/api_response_crypto_money_flow_index_spec.rb +0 -72
- data/spec/models/api_response_crypto_moving_average_convergence_divergence_spec.rb +0 -72
- data/spec/models/api_response_crypto_negative_volume_index_spec.rb +0 -72
- data/spec/models/api_response_crypto_on_balance_volume_mean_spec.rb +0 -72
- data/spec/models/api_response_crypto_on_balance_volume_spec.rb +0 -72
- data/spec/models/api_response_crypto_pairs_spec.rb +0 -48
- data/spec/models/api_response_crypto_prices_spec.rb +0 -66
- data/spec/models/api_response_crypto_relative_strength_index_spec.rb +0 -72
- data/spec/models/api_response_crypto_simple_moving_average_spec.rb +0 -72
- data/spec/models/api_response_crypto_snapshot_spec.rb +0 -54
- data/spec/models/api_response_crypto_stats_spec.rb +0 -42
- data/spec/models/api_response_crypto_stochastic_oscillator_spec.rb +0 -72
- data/spec/models/api_response_crypto_triple_exponential_average_spec.rb +0 -72
- data/spec/models/api_response_crypto_true_strength_index_spec.rb +0 -72
- data/spec/models/api_response_crypto_ultimate_oscillator_spec.rb +0 -72
- data/spec/models/api_response_crypto_volume_price_trend_spec.rb +0 -72
- data/spec/models/api_response_crypto_volume_weighted_average_price_spec.rb +0 -72
- data/spec/models/api_response_crypto_vortex_indicator_spec.rb +0 -72
- data/spec/models/api_response_crypto_williams_r_spec.rb +0 -72
- data/spec/models/crypto_ask_spec.rb +0 -48
- data/spec/models/crypto_bid_spec.rb +0 -48
- data/spec/models/crypto_book_entry_spec.rb +0 -48
- data/spec/models/crypto_currency_spec.rb +0 -66
- data/spec/models/crypto_exchange_spec.rb +0 -72
- data/spec/models/crypto_exchange_summary_spec.rb +0 -48
- data/spec/models/crypto_pair_spec.rb +0 -84
- data/spec/models/crypto_pair_summary_spec.rb +0 -48
- data/spec/models/crypto_price_spec.rb +0 -72
- data/spec/models/crypto_snapshot_spec.rb +0 -126
- data/spec/models/crypto_stat_spec.rb +0 -84
@@ -1,199 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Intrinio API
|
3
|
-
|
4
|
-
#Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner.
|
5
|
-
|
6
|
-
OpenAPI spec version: 2.8.4
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module Intrinio
|
16
|
-
# Data for the provided Crypto Currency Pair.
|
17
|
-
class CryptoPairSummary
|
18
|
-
# The Crypto Currency Pair name.
|
19
|
-
attr_accessor :name
|
20
|
-
|
21
|
-
# The Crypto Currency Pair code.
|
22
|
-
attr_accessor :code
|
23
|
-
|
24
|
-
|
25
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
-
def self.attribute_map
|
27
|
-
{
|
28
|
-
:'name' => :'name',
|
29
|
-
:'code' => :'code'
|
30
|
-
}
|
31
|
-
end
|
32
|
-
|
33
|
-
# Attribute type mapping.
|
34
|
-
def self.swagger_types
|
35
|
-
{
|
36
|
-
:'name' => :'String',
|
37
|
-
:'code' => :'String'
|
38
|
-
}
|
39
|
-
end
|
40
|
-
|
41
|
-
# Initializes the object
|
42
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
43
|
-
def initialize(attributes = {})
|
44
|
-
return unless attributes.is_a?(Hash)
|
45
|
-
|
46
|
-
# convert string to symbol for hash key
|
47
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
48
|
-
|
49
|
-
if attributes.has_key?(:'name')
|
50
|
-
self.name = attributes[:'name']
|
51
|
-
end
|
52
|
-
|
53
|
-
if attributes.has_key?(:'code')
|
54
|
-
self.code = attributes[:'code']
|
55
|
-
end
|
56
|
-
|
57
|
-
end
|
58
|
-
|
59
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
60
|
-
# @return Array for valid properties with the reasons
|
61
|
-
def list_invalid_properties
|
62
|
-
invalid_properties = Array.new
|
63
|
-
return invalid_properties
|
64
|
-
end
|
65
|
-
|
66
|
-
# Check to see if the all the properties in the model are valid
|
67
|
-
# @return true if the model is valid
|
68
|
-
def valid?
|
69
|
-
return true
|
70
|
-
end
|
71
|
-
|
72
|
-
# Checks equality by comparing each attribute.
|
73
|
-
# @param [Object] Object to be compared
|
74
|
-
def ==(o)
|
75
|
-
return true if self.equal?(o)
|
76
|
-
self.class == o.class &&
|
77
|
-
name == o.name &&
|
78
|
-
code == o.code
|
79
|
-
end
|
80
|
-
|
81
|
-
# @see the `==` method
|
82
|
-
# @param [Object] Object to be compared
|
83
|
-
def eql?(o)
|
84
|
-
self == o
|
85
|
-
end
|
86
|
-
|
87
|
-
# Calculates hash code according to all attributes.
|
88
|
-
# @return [Fixnum] Hash code
|
89
|
-
def hash
|
90
|
-
[name, code].hash
|
91
|
-
end
|
92
|
-
|
93
|
-
# Builds the object from hash
|
94
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
95
|
-
# @return [Object] Returns the model itself
|
96
|
-
def build_from_hash(attributes)
|
97
|
-
return nil unless attributes.is_a?(Hash)
|
98
|
-
self.class.swagger_types.each_pair do |key, type|
|
99
|
-
if type =~ /\AArray<(.*)>/i
|
100
|
-
# check to ensure the input is an array given that the the attribute
|
101
|
-
# is documented as an array but the input is not
|
102
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
103
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
104
|
-
end
|
105
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
106
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
107
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
108
|
-
end
|
109
|
-
|
110
|
-
self
|
111
|
-
end
|
112
|
-
|
113
|
-
# Deserializes the data based on type
|
114
|
-
# @param string type Data type
|
115
|
-
# @param string value Value to be deserialized
|
116
|
-
# @return [Object] Deserialized data
|
117
|
-
def _deserialize(type, value)
|
118
|
-
case type.to_sym
|
119
|
-
when :DateTime
|
120
|
-
DateTime.parse(value)
|
121
|
-
when :Date
|
122
|
-
Date.parse(value)
|
123
|
-
when :String
|
124
|
-
value.to_s
|
125
|
-
when :Integer
|
126
|
-
value.to_i
|
127
|
-
when :Float
|
128
|
-
value.to_f
|
129
|
-
when :BOOLEAN
|
130
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
131
|
-
true
|
132
|
-
else
|
133
|
-
false
|
134
|
-
end
|
135
|
-
when :Object
|
136
|
-
# generic object (usually a Hash), return directly
|
137
|
-
value
|
138
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
139
|
-
inner_type = Regexp.last_match[:inner_type]
|
140
|
-
value.map { |v| _deserialize(inner_type, v) }
|
141
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
142
|
-
k_type = Regexp.last_match[:k_type]
|
143
|
-
v_type = Regexp.last_match[:v_type]
|
144
|
-
{}.tap do |hash|
|
145
|
-
value.each do |k, v|
|
146
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
147
|
-
end
|
148
|
-
end
|
149
|
-
else # model
|
150
|
-
temp_model = Intrinio.const_get(type).new
|
151
|
-
temp_model.build_from_hash(value)
|
152
|
-
end
|
153
|
-
end
|
154
|
-
|
155
|
-
# Returns the string representation of the object
|
156
|
-
# @return [String] String presentation of the object
|
157
|
-
def to_s
|
158
|
-
to_hash.to_s
|
159
|
-
end
|
160
|
-
|
161
|
-
# to_body is an alias to to_hash (backward compatibility)
|
162
|
-
# @return [Hash] Returns the object in the form of hash
|
163
|
-
def to_body
|
164
|
-
to_hash
|
165
|
-
end
|
166
|
-
|
167
|
-
# Returns the object in the form of hash
|
168
|
-
# @return [Hash] Returns the object in the form of hash
|
169
|
-
def to_hash
|
170
|
-
hash = {}
|
171
|
-
self.class.attribute_map.each_pair do |attr, param|
|
172
|
-
value = self.send(attr)
|
173
|
-
next if value.nil?
|
174
|
-
hash[param] = _to_hash(value)
|
175
|
-
end
|
176
|
-
hash
|
177
|
-
end
|
178
|
-
|
179
|
-
# Outputs non-array value in the form of hash
|
180
|
-
# For object, use to_hash. Otherwise, just return the value
|
181
|
-
# @param [Object] value Any valid value
|
182
|
-
# @return [Hash] Returns the value in the form of hash
|
183
|
-
def _to_hash(value)
|
184
|
-
if value.is_a?(Array)
|
185
|
-
value.compact.map{ |v| _to_hash(v) }
|
186
|
-
elsif value.is_a?(Hash)
|
187
|
-
{}.tap do |hash|
|
188
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
189
|
-
end
|
190
|
-
elsif value.respond_to? :to_hash
|
191
|
-
value.to_hash
|
192
|
-
else
|
193
|
-
value
|
194
|
-
end
|
195
|
-
end
|
196
|
-
|
197
|
-
end
|
198
|
-
|
199
|
-
end
|
@@ -1,239 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Intrinio API
|
3
|
-
|
4
|
-
#Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner.
|
5
|
-
|
6
|
-
OpenAPI spec version: 2.8.4
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module Intrinio
|
16
|
-
# All the BAR prices, time, and volume for the given Crypto Currency Pair on the given Crypto Exchange.
|
17
|
-
class CryptoPrice
|
18
|
-
# The date and time of the beginning of the timeframe (in UTC). The open prices would be at this time, while close prices would be at this time plus the timeframe.
|
19
|
-
attr_accessor :time
|
20
|
-
|
21
|
-
# The opening price of the timeframe.
|
22
|
-
attr_accessor :open
|
23
|
-
|
24
|
-
# The high price of the timeframe.
|
25
|
-
attr_accessor :high
|
26
|
-
|
27
|
-
# The low price of the timeframe.
|
28
|
-
attr_accessor :low
|
29
|
-
|
30
|
-
# The closing price of the timeframe.
|
31
|
-
attr_accessor :close
|
32
|
-
|
33
|
-
# The volume during the timeframe.
|
34
|
-
attr_accessor :volume
|
35
|
-
|
36
|
-
|
37
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
38
|
-
def self.attribute_map
|
39
|
-
{
|
40
|
-
:'time' => :'time',
|
41
|
-
:'open' => :'open',
|
42
|
-
:'high' => :'high',
|
43
|
-
:'low' => :'low',
|
44
|
-
:'close' => :'close',
|
45
|
-
:'volume' => :'volume'
|
46
|
-
}
|
47
|
-
end
|
48
|
-
|
49
|
-
# Attribute type mapping.
|
50
|
-
def self.swagger_types
|
51
|
-
{
|
52
|
-
:'time' => :'DateTime',
|
53
|
-
:'open' => :'Float',
|
54
|
-
:'high' => :'Float',
|
55
|
-
:'low' => :'Float',
|
56
|
-
:'close' => :'Float',
|
57
|
-
:'volume' => :'Float'
|
58
|
-
}
|
59
|
-
end
|
60
|
-
|
61
|
-
# Initializes the object
|
62
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
63
|
-
def initialize(attributes = {})
|
64
|
-
return unless attributes.is_a?(Hash)
|
65
|
-
|
66
|
-
# convert string to symbol for hash key
|
67
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
68
|
-
|
69
|
-
if attributes.has_key?(:'time')
|
70
|
-
self.time = attributes[:'time']
|
71
|
-
end
|
72
|
-
|
73
|
-
if attributes.has_key?(:'open')
|
74
|
-
self.open = attributes[:'open']
|
75
|
-
end
|
76
|
-
|
77
|
-
if attributes.has_key?(:'high')
|
78
|
-
self.high = attributes[:'high']
|
79
|
-
end
|
80
|
-
|
81
|
-
if attributes.has_key?(:'low')
|
82
|
-
self.low = attributes[:'low']
|
83
|
-
end
|
84
|
-
|
85
|
-
if attributes.has_key?(:'close')
|
86
|
-
self.close = attributes[:'close']
|
87
|
-
end
|
88
|
-
|
89
|
-
if attributes.has_key?(:'volume')
|
90
|
-
self.volume = attributes[:'volume']
|
91
|
-
end
|
92
|
-
|
93
|
-
end
|
94
|
-
|
95
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
96
|
-
# @return Array for valid properties with the reasons
|
97
|
-
def list_invalid_properties
|
98
|
-
invalid_properties = Array.new
|
99
|
-
return invalid_properties
|
100
|
-
end
|
101
|
-
|
102
|
-
# Check to see if the all the properties in the model are valid
|
103
|
-
# @return true if the model is valid
|
104
|
-
def valid?
|
105
|
-
return true
|
106
|
-
end
|
107
|
-
|
108
|
-
# Checks equality by comparing each attribute.
|
109
|
-
# @param [Object] Object to be compared
|
110
|
-
def ==(o)
|
111
|
-
return true if self.equal?(o)
|
112
|
-
self.class == o.class &&
|
113
|
-
time == o.time &&
|
114
|
-
open == o.open &&
|
115
|
-
high == o.high &&
|
116
|
-
low == o.low &&
|
117
|
-
close == o.close &&
|
118
|
-
volume == o.volume
|
119
|
-
end
|
120
|
-
|
121
|
-
# @see the `==` method
|
122
|
-
# @param [Object] Object to be compared
|
123
|
-
def eql?(o)
|
124
|
-
self == o
|
125
|
-
end
|
126
|
-
|
127
|
-
# Calculates hash code according to all attributes.
|
128
|
-
# @return [Fixnum] Hash code
|
129
|
-
def hash
|
130
|
-
[time, open, high, low, close, volume].hash
|
131
|
-
end
|
132
|
-
|
133
|
-
# Builds the object from hash
|
134
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
135
|
-
# @return [Object] Returns the model itself
|
136
|
-
def build_from_hash(attributes)
|
137
|
-
return nil unless attributes.is_a?(Hash)
|
138
|
-
self.class.swagger_types.each_pair do |key, type|
|
139
|
-
if type =~ /\AArray<(.*)>/i
|
140
|
-
# check to ensure the input is an array given that the the attribute
|
141
|
-
# is documented as an array but the input is not
|
142
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
143
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
144
|
-
end
|
145
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
146
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
147
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
148
|
-
end
|
149
|
-
|
150
|
-
self
|
151
|
-
end
|
152
|
-
|
153
|
-
# Deserializes the data based on type
|
154
|
-
# @param string type Data type
|
155
|
-
# @param string value Value to be deserialized
|
156
|
-
# @return [Object] Deserialized data
|
157
|
-
def _deserialize(type, value)
|
158
|
-
case type.to_sym
|
159
|
-
when :DateTime
|
160
|
-
DateTime.parse(value)
|
161
|
-
when :Date
|
162
|
-
Date.parse(value)
|
163
|
-
when :String
|
164
|
-
value.to_s
|
165
|
-
when :Integer
|
166
|
-
value.to_i
|
167
|
-
when :Float
|
168
|
-
value.to_f
|
169
|
-
when :BOOLEAN
|
170
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
171
|
-
true
|
172
|
-
else
|
173
|
-
false
|
174
|
-
end
|
175
|
-
when :Object
|
176
|
-
# generic object (usually a Hash), return directly
|
177
|
-
value
|
178
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
179
|
-
inner_type = Regexp.last_match[:inner_type]
|
180
|
-
value.map { |v| _deserialize(inner_type, v) }
|
181
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
182
|
-
k_type = Regexp.last_match[:k_type]
|
183
|
-
v_type = Regexp.last_match[:v_type]
|
184
|
-
{}.tap do |hash|
|
185
|
-
value.each do |k, v|
|
186
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
187
|
-
end
|
188
|
-
end
|
189
|
-
else # model
|
190
|
-
temp_model = Intrinio.const_get(type).new
|
191
|
-
temp_model.build_from_hash(value)
|
192
|
-
end
|
193
|
-
end
|
194
|
-
|
195
|
-
# Returns the string representation of the object
|
196
|
-
# @return [String] String presentation of the object
|
197
|
-
def to_s
|
198
|
-
to_hash.to_s
|
199
|
-
end
|
200
|
-
|
201
|
-
# to_body is an alias to to_hash (backward compatibility)
|
202
|
-
# @return [Hash] Returns the object in the form of hash
|
203
|
-
def to_body
|
204
|
-
to_hash
|
205
|
-
end
|
206
|
-
|
207
|
-
# Returns the object in the form of hash
|
208
|
-
# @return [Hash] Returns the object in the form of hash
|
209
|
-
def to_hash
|
210
|
-
hash = {}
|
211
|
-
self.class.attribute_map.each_pair do |attr, param|
|
212
|
-
value = self.send(attr)
|
213
|
-
next if value.nil?
|
214
|
-
hash[param] = _to_hash(value)
|
215
|
-
end
|
216
|
-
hash
|
217
|
-
end
|
218
|
-
|
219
|
-
# Outputs non-array value in the form of hash
|
220
|
-
# For object, use to_hash. Otherwise, just return the value
|
221
|
-
# @param [Object] value Any valid value
|
222
|
-
# @return [Hash] Returns the value in the form of hash
|
223
|
-
def _to_hash(value)
|
224
|
-
if value.is_a?(Array)
|
225
|
-
value.compact.map{ |v| _to_hash(v) }
|
226
|
-
elsif value.is_a?(Hash)
|
227
|
-
{}.tap do |hash|
|
228
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
229
|
-
end
|
230
|
-
elsif value.respond_to? :to_hash
|
231
|
-
value.to_hash
|
232
|
-
else
|
233
|
-
value
|
234
|
-
end
|
235
|
-
end
|
236
|
-
|
237
|
-
end
|
238
|
-
|
239
|
-
end
|
@@ -1,329 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Intrinio API
|
3
|
-
|
4
|
-
#Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner.
|
5
|
-
|
6
|
-
OpenAPI spec version: 2.8.4
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module Intrinio
|
16
|
-
# A snapshot is a point in time look at the given Crypto Currency Pair on the given Crypto Currency Exchange. The snapshot includes information from the last 24 hours such as bid price, bid size, ask price, ask size, notional change in price, percent change in price, volume, open price, high price, low price, and details of the last trade (price, time, size, and side).
|
17
|
-
class CryptoSnapshot
|
18
|
-
# UTC timestamp of when the snapshot was last updated.
|
19
|
-
attr_accessor :last_updated
|
20
|
-
|
21
|
-
# The bid for the Crypto Currency Pair on the exchange.
|
22
|
-
attr_accessor :bid
|
23
|
-
|
24
|
-
# The size of the bid for the Crypto Currency Pair on the exchange.
|
25
|
-
attr_accessor :bid_size
|
26
|
-
|
27
|
-
# The ask for the Crypto Currency Pair on the exchange.
|
28
|
-
attr_accessor :ask
|
29
|
-
|
30
|
-
# The size of the ask for the Crypto Currency Pair on the exchange.
|
31
|
-
attr_accessor :ask_size
|
32
|
-
|
33
|
-
# The notional change in price over the last 24 hours.
|
34
|
-
attr_accessor :change
|
35
|
-
|
36
|
-
# The percent change in price over the last 24 hours.
|
37
|
-
attr_accessor :change_percent
|
38
|
-
|
39
|
-
# The volume of the Crypto Currency Pair on the exchange.
|
40
|
-
attr_accessor :volume
|
41
|
-
|
42
|
-
# The opening price of the currency on the exchange.
|
43
|
-
attr_accessor :open
|
44
|
-
|
45
|
-
# The highest price of the currency on the exchange for the last 24 hours.
|
46
|
-
attr_accessor :high
|
47
|
-
|
48
|
-
# The lowest price of the currency on the exchange for the last 24 hours.
|
49
|
-
attr_accessor :low
|
50
|
-
|
51
|
-
# The side of the last trade, either buy or sell.
|
52
|
-
attr_accessor :last_trade_side
|
53
|
-
|
54
|
-
# UTC timestamp of the last trade for the Crypto Currency Pair on the exchange.
|
55
|
-
attr_accessor :last_trade_time
|
56
|
-
|
57
|
-
# The price of the last trade for the Crypto Currency Pair on the exchange.
|
58
|
-
attr_accessor :last_trade_price
|
59
|
-
|
60
|
-
# The size of the last trade for the Crypto Currency Pair on the exchange.
|
61
|
-
attr_accessor :last_trade_size
|
62
|
-
|
63
|
-
|
64
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
65
|
-
def self.attribute_map
|
66
|
-
{
|
67
|
-
:'last_updated' => :'last_updated',
|
68
|
-
:'bid' => :'bid',
|
69
|
-
:'bid_size' => :'bid_size',
|
70
|
-
:'ask' => :'ask',
|
71
|
-
:'ask_size' => :'ask_size',
|
72
|
-
:'change' => :'change',
|
73
|
-
:'change_percent' => :'change_percent',
|
74
|
-
:'volume' => :'volume',
|
75
|
-
:'open' => :'open',
|
76
|
-
:'high' => :'high',
|
77
|
-
:'low' => :'low',
|
78
|
-
:'last_trade_side' => :'last_trade_side',
|
79
|
-
:'last_trade_time' => :'last_trade_time',
|
80
|
-
:'last_trade_price' => :'last_trade_price',
|
81
|
-
:'last_trade_size' => :'last_trade_size'
|
82
|
-
}
|
83
|
-
end
|
84
|
-
|
85
|
-
# Attribute type mapping.
|
86
|
-
def self.swagger_types
|
87
|
-
{
|
88
|
-
:'last_updated' => :'String',
|
89
|
-
:'bid' => :'Float',
|
90
|
-
:'bid_size' => :'Float',
|
91
|
-
:'ask' => :'Float',
|
92
|
-
:'ask_size' => :'Float',
|
93
|
-
:'change' => :'Float',
|
94
|
-
:'change_percent' => :'Float',
|
95
|
-
:'volume' => :'Float',
|
96
|
-
:'open' => :'Float',
|
97
|
-
:'high' => :'Float',
|
98
|
-
:'low' => :'Float',
|
99
|
-
:'last_trade_side' => :'String',
|
100
|
-
:'last_trade_time' => :'String',
|
101
|
-
:'last_trade_price' => :'Float',
|
102
|
-
:'last_trade_size' => :'Float'
|
103
|
-
}
|
104
|
-
end
|
105
|
-
|
106
|
-
# Initializes the object
|
107
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
108
|
-
def initialize(attributes = {})
|
109
|
-
return unless attributes.is_a?(Hash)
|
110
|
-
|
111
|
-
# convert string to symbol for hash key
|
112
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
113
|
-
|
114
|
-
if attributes.has_key?(:'last_updated')
|
115
|
-
self.last_updated = attributes[:'last_updated']
|
116
|
-
end
|
117
|
-
|
118
|
-
if attributes.has_key?(:'bid')
|
119
|
-
self.bid = attributes[:'bid']
|
120
|
-
end
|
121
|
-
|
122
|
-
if attributes.has_key?(:'bid_size')
|
123
|
-
self.bid_size = attributes[:'bid_size']
|
124
|
-
end
|
125
|
-
|
126
|
-
if attributes.has_key?(:'ask')
|
127
|
-
self.ask = attributes[:'ask']
|
128
|
-
end
|
129
|
-
|
130
|
-
if attributes.has_key?(:'ask_size')
|
131
|
-
self.ask_size = attributes[:'ask_size']
|
132
|
-
end
|
133
|
-
|
134
|
-
if attributes.has_key?(:'change')
|
135
|
-
self.change = attributes[:'change']
|
136
|
-
end
|
137
|
-
|
138
|
-
if attributes.has_key?(:'change_percent')
|
139
|
-
self.change_percent = attributes[:'change_percent']
|
140
|
-
end
|
141
|
-
|
142
|
-
if attributes.has_key?(:'volume')
|
143
|
-
self.volume = attributes[:'volume']
|
144
|
-
end
|
145
|
-
|
146
|
-
if attributes.has_key?(:'open')
|
147
|
-
self.open = attributes[:'open']
|
148
|
-
end
|
149
|
-
|
150
|
-
if attributes.has_key?(:'high')
|
151
|
-
self.high = attributes[:'high']
|
152
|
-
end
|
153
|
-
|
154
|
-
if attributes.has_key?(:'low')
|
155
|
-
self.low = attributes[:'low']
|
156
|
-
end
|
157
|
-
|
158
|
-
if attributes.has_key?(:'last_trade_side')
|
159
|
-
self.last_trade_side = attributes[:'last_trade_side']
|
160
|
-
end
|
161
|
-
|
162
|
-
if attributes.has_key?(:'last_trade_time')
|
163
|
-
self.last_trade_time = attributes[:'last_trade_time']
|
164
|
-
end
|
165
|
-
|
166
|
-
if attributes.has_key?(:'last_trade_price')
|
167
|
-
self.last_trade_price = attributes[:'last_trade_price']
|
168
|
-
end
|
169
|
-
|
170
|
-
if attributes.has_key?(:'last_trade_size')
|
171
|
-
self.last_trade_size = attributes[:'last_trade_size']
|
172
|
-
end
|
173
|
-
|
174
|
-
end
|
175
|
-
|
176
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
177
|
-
# @return Array for valid properties with the reasons
|
178
|
-
def list_invalid_properties
|
179
|
-
invalid_properties = Array.new
|
180
|
-
return invalid_properties
|
181
|
-
end
|
182
|
-
|
183
|
-
# Check to see if the all the properties in the model are valid
|
184
|
-
# @return true if the model is valid
|
185
|
-
def valid?
|
186
|
-
return true
|
187
|
-
end
|
188
|
-
|
189
|
-
# Checks equality by comparing each attribute.
|
190
|
-
# @param [Object] Object to be compared
|
191
|
-
def ==(o)
|
192
|
-
return true if self.equal?(o)
|
193
|
-
self.class == o.class &&
|
194
|
-
last_updated == o.last_updated &&
|
195
|
-
bid == o.bid &&
|
196
|
-
bid_size == o.bid_size &&
|
197
|
-
ask == o.ask &&
|
198
|
-
ask_size == o.ask_size &&
|
199
|
-
change == o.change &&
|
200
|
-
change_percent == o.change_percent &&
|
201
|
-
volume == o.volume &&
|
202
|
-
open == o.open &&
|
203
|
-
high == o.high &&
|
204
|
-
low == o.low &&
|
205
|
-
last_trade_side == o.last_trade_side &&
|
206
|
-
last_trade_time == o.last_trade_time &&
|
207
|
-
last_trade_price == o.last_trade_price &&
|
208
|
-
last_trade_size == o.last_trade_size
|
209
|
-
end
|
210
|
-
|
211
|
-
# @see the `==` method
|
212
|
-
# @param [Object] Object to be compared
|
213
|
-
def eql?(o)
|
214
|
-
self == o
|
215
|
-
end
|
216
|
-
|
217
|
-
# Calculates hash code according to all attributes.
|
218
|
-
# @return [Fixnum] Hash code
|
219
|
-
def hash
|
220
|
-
[last_updated, bid, bid_size, ask, ask_size, change, change_percent, volume, open, high, low, last_trade_side, last_trade_time, last_trade_price, last_trade_size].hash
|
221
|
-
end
|
222
|
-
|
223
|
-
# Builds the object from hash
|
224
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
225
|
-
# @return [Object] Returns the model itself
|
226
|
-
def build_from_hash(attributes)
|
227
|
-
return nil unless attributes.is_a?(Hash)
|
228
|
-
self.class.swagger_types.each_pair do |key, type|
|
229
|
-
if type =~ /\AArray<(.*)>/i
|
230
|
-
# check to ensure the input is an array given that the the attribute
|
231
|
-
# is documented as an array but the input is not
|
232
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
233
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
234
|
-
end
|
235
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
236
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
237
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
238
|
-
end
|
239
|
-
|
240
|
-
self
|
241
|
-
end
|
242
|
-
|
243
|
-
# Deserializes the data based on type
|
244
|
-
# @param string type Data type
|
245
|
-
# @param string value Value to be deserialized
|
246
|
-
# @return [Object] Deserialized data
|
247
|
-
def _deserialize(type, value)
|
248
|
-
case type.to_sym
|
249
|
-
when :DateTime
|
250
|
-
DateTime.parse(value)
|
251
|
-
when :Date
|
252
|
-
Date.parse(value)
|
253
|
-
when :String
|
254
|
-
value.to_s
|
255
|
-
when :Integer
|
256
|
-
value.to_i
|
257
|
-
when :Float
|
258
|
-
value.to_f
|
259
|
-
when :BOOLEAN
|
260
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
261
|
-
true
|
262
|
-
else
|
263
|
-
false
|
264
|
-
end
|
265
|
-
when :Object
|
266
|
-
# generic object (usually a Hash), return directly
|
267
|
-
value
|
268
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
269
|
-
inner_type = Regexp.last_match[:inner_type]
|
270
|
-
value.map { |v| _deserialize(inner_type, v) }
|
271
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
272
|
-
k_type = Regexp.last_match[:k_type]
|
273
|
-
v_type = Regexp.last_match[:v_type]
|
274
|
-
{}.tap do |hash|
|
275
|
-
value.each do |k, v|
|
276
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
277
|
-
end
|
278
|
-
end
|
279
|
-
else # model
|
280
|
-
temp_model = Intrinio.const_get(type).new
|
281
|
-
temp_model.build_from_hash(value)
|
282
|
-
end
|
283
|
-
end
|
284
|
-
|
285
|
-
# Returns the string representation of the object
|
286
|
-
# @return [String] String presentation of the object
|
287
|
-
def to_s
|
288
|
-
to_hash.to_s
|
289
|
-
end
|
290
|
-
|
291
|
-
# to_body is an alias to to_hash (backward compatibility)
|
292
|
-
# @return [Hash] Returns the object in the form of hash
|
293
|
-
def to_body
|
294
|
-
to_hash
|
295
|
-
end
|
296
|
-
|
297
|
-
# Returns the object in the form of hash
|
298
|
-
# @return [Hash] Returns the object in the form of hash
|
299
|
-
def to_hash
|
300
|
-
hash = {}
|
301
|
-
self.class.attribute_map.each_pair do |attr, param|
|
302
|
-
value = self.send(attr)
|
303
|
-
next if value.nil?
|
304
|
-
hash[param] = _to_hash(value)
|
305
|
-
end
|
306
|
-
hash
|
307
|
-
end
|
308
|
-
|
309
|
-
# Outputs non-array value in the form of hash
|
310
|
-
# For object, use to_hash. Otherwise, just return the value
|
311
|
-
# @param [Object] value Any valid value
|
312
|
-
# @return [Hash] Returns the value in the form of hash
|
313
|
-
def _to_hash(value)
|
314
|
-
if value.is_a?(Array)
|
315
|
-
value.compact.map{ |v| _to_hash(v) }
|
316
|
-
elsif value.is_a?(Hash)
|
317
|
-
{}.tap do |hash|
|
318
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
319
|
-
end
|
320
|
-
elsif value.respond_to? :to_hash
|
321
|
-
value.to_hash
|
322
|
-
else
|
323
|
-
value
|
324
|
-
end
|
325
|
-
end
|
326
|
-
|
327
|
-
end
|
328
|
-
|
329
|
-
end
|