Class: IEX::Resources::KeyStats
- Inherits:
-
IEX::Resource
- Object
- Hashie::Trash
- IEX::Resource
- IEX::Resources::KeyStats
- Defined in:
- lib/iex/resources/key_stats.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ KeyStats
constructor
A new instance of KeyStats.
Constructor Details
#initialize(data = {}) ⇒ KeyStats
Returns a new instance of KeyStats.
74 75 76 77 78 |
# File 'lib/iex/resources/key_stats.rb', line 74 def initialize(data = {}) super # TODO: require Hashie >= 2.5.8, see https://github.com/intridea/hashie/pull/457 self['revenue_dollar'] = Base.to_dollar(amount: revenue) end |