Class: Histock::Filter
- Inherits:
-
Object
- Object
- Histock::Filter
- Defined in:
- lib/histock/filter.rb,
lib/histock/filter/version.rb
Constant Summary collapse
- CONFIG =
[ # one argument [ 'monthly_revenue', 'income_statement', 'dividend_policy', 'profit_ratio', 'price_to_earning_ratio', 'price_book_ratio' ], # two arguments [ 'income_rate' ] ]
- VERSION =
'1.2.0'
Instance Method Summary collapse
- #company_profile(param) ⇒ Object
-
#initialize ⇒ Filter
constructor
A new instance of Filter.
Constructor Details
#initialize ⇒ Filter
Returns a new instance of Filter.
23 24 |
# File 'lib/histock/filter.rb', line 23 def initialize end |
Instance Method Details
#company_profile(param) ⇒ Object
44 45 46 47 48 49 |
# File 'lib/histock/filter.rb', line 44 def company_profile(param) histock = Histock::Simplefilter.new table = histock.send(__method__, param) table[0..1].transpose.to_h.merge(table[2..3].transpose.to_h) end |