Class: LiteXBRL::TDnet::Summary2

Inherits:
FinancialInformation2 show all
Includes:
CompanyAttribute, SummaryAttribute
Defined in:
lib/litexbrl/tdnet/summary2.rb

Constant Summary

Constants inherited from FinancialInformation2

FinancialInformation2::SEASON_Q1, FinancialInformation2::SEASON_Q2, FinancialInformation2::SEASON_Q3, FinancialInformation2::SEASON_Q4

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 SummaryAttribute

#change_in_forecast_net_income, #change_in_forecast_net_sales, #change_in_forecast_operating_income, #change_in_forecast_ordinary_income, #change_in_net_income, #change_in_net_sales, #change_in_operating_income, #change_in_ordinary_income, #change_in_prior_net_income, #change_in_prior_net_sales, #change_in_prior_operating_income, #change_in_prior_ordinary_income, #code, #consolidation, #forecast_net_income, #forecast_net_income_per_share, #forecast_net_sales, #forecast_operating_income, #forecast_ordinary_income, #month, #net_income, #net_income_per_share, #net_sales, #operating_income, #ordinary_income, #prior_net_income, #prior_net_income_per_share, #prior_net_sales, #prior_operating_income, #prior_ordinary_income, #quarter, #year

Attributes included from CompanyAttribute

#code, #company_name, #consolidation

Class Method Summary collapse

Methods included from SummaryAttribute

#attributes, #attributes_results_forecast

Methods included from CompanyAttribute

#attributes_company

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



6
7
8
9
10
11
# File 'lib/litexbrl/tdnet/summary2.rb', line 6

def self.read(doc)
  xbrl = read_data doc

  {summary: xbrl.attributes,
    results_forecast: [xbrl.attributes_results_forecast]}
end