Class: LiteXBRL::TDnet::ResultsForecast
- Inherits:
-
FinancialInformation
- Object
- FinancialInformation
- LiteXBRL::TDnet::ResultsForecast
- Includes:
- ResultsForecastAttribute
- Defined in:
- lib/litexbrl/tdnet/results_forecast.rb
Constant Summary collapse
- SEASON_Q2 =
'AccumulatedQ2'
- SEASON_Q4 =
'Year'
Constants included from Utils
Utils::CONSOLIDATED, Utils::NON_CONSOLIDATED, Utils::SECURITIES_CODE
Constants included from AccountItem
AccountItem::CHANGE_FORECAST_NET_INCOME, AccountItem::CHANGE_FORECAST_NET_SALES, AccountItem::CHANGE_FORECAST_OPERATING_INCOME, AccountItem::CHANGE_FORECAST_ORDINARY_INCOME, AccountItem::CHANGE_IN_NET_INCOME, AccountItem::CHANGE_IN_NET_SALES, AccountItem::CHANGE_IN_OPERATING_INCOME, AccountItem::CHANGE_IN_ORDINARY_INCOME, AccountItem::CHANGE_NET_INCOME, AccountItem::CHANGE_NET_SALES, AccountItem::CHANGE_OPERATING_INCOME, AccountItem::CHANGE_ORDINARY_INCOME, AccountItem::COMPANY_NAME, AccountItem::FORECAST_NET_INCOME, AccountItem::FORECAST_NET_INCOME_PER_SHARE, AccountItem::FORECAST_NET_SALES, AccountItem::FORECAST_OPERATING_INCOME, AccountItem::FORECAST_ORDINARY_INCOME, AccountItem::NET_INCOME, AccountItem::NET_INCOME_PER_SHARE, AccountItem::NET_SALES, AccountItem::OPERATING_INCOME, AccountItem::ORDINARY_INCOME, AccountItem::PREVIOUS_FORECAST_NET_INCOME, AccountItem::PREVIOUS_FORECAST_NET_INCOME_PER_SHARE, AccountItem::PREVIOUS_FORECAST_NET_SALES, AccountItem::PREVIOUS_FORECAST_OPERATING_INCOME, AccountItem::PREVIOUS_FORECAST_ORDINARY_INCOME
Instance Attribute Summary
Attributes included from ResultsForecastAttribute
#change_forecast_net_income, #change_forecast_net_sales, #change_forecast_operating_income, #change_forecast_ordinary_income, #code, #consolidation, #forecast_net_income, #forecast_net_income_per_share, #forecast_net_sales, #forecast_operating_income, #forecast_ordinary_income, #month, #previous_forecast_net_income, #previous_forecast_net_income_per_share, #previous_forecast_net_sales, #previous_forecast_operating_income, #previous_forecast_ordinary_income, #quarter, #year
Class Method Summary collapse
Methods included from ResultsForecastAttribute
Methods included from Utils
#hash_with_default, #percent_to_f, #present?, #to_consolidation, #to_f, #to_i, #to_mill, #to_month, #to_securities_code, #to_year
Methods included from AccountItem
define_item, define_nested_item
Class Method Details
.read(doc) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/litexbrl/tdnet/results_forecast.rb', line 9 def self.read(doc) xbrl_q2 = read_data doc, SEASON_Q2 xbrl_q4 = read_data doc, SEASON_Q4 raise StandardError.new "業績予想の修正を取得できません。" unless xbrl_q2 || xbrl_q4 data = {results_forecast: []} data[:results_forecast] << xbrl_q2.attributes if xbrl_q2 data[:results_forecast] << xbrl_q4.attributes if xbrl_q4 data end |