Class: Eodhd::EodBulkLastDay
- Inherits:
-
Object
- Object
- Eodhd::EodBulkLastDay
- Defined in:
- lib/Eodhd/EodBulkLastDay.rb
Instance Attribute Summary collapse
-
#adjusted_close ⇒ Object
readonly
class << self.
-
#close ⇒ Object
readonly
class << self.
-
#code ⇒ Object
readonly
class << self.
-
#date ⇒ Object
readonly
class << self.
-
#exchange_short_name ⇒ Object
readonly
class << self.
-
#high ⇒ Object
readonly
class << self.
-
#low ⇒ Object
readonly
class << self.
-
#open ⇒ Object
readonly
class << self.
-
#volume ⇒ Object
readonly
class << self.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code:, exchange_short_name:, date:, open:, high:, low:, close:, adjusted_close:, volume:) ⇒ EodBulkLastDay
constructor
A new instance of EodBulkLastDay.
Constructor Details
#initialize(code:, exchange_short_name:, date:, open:, high:, low:, close:, adjusted_close:, volume:) ⇒ EodBulkLastDay
Returns a new instance of EodBulkLastDay.
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/Eodhd/EodBulkLastDay.rb', line 42 def initialize(code:, exchange_short_name:, date:, open:, high:, low:, close:, adjusted_close:, volume:) @code = code @exchange_short_name = exchange_short_name @date = date @open = open @high = high @low = low @close = close @adjusted_close = adjusted_close @volume = volume end |
Instance Attribute Details
#adjusted_close ⇒ Object (readonly)
class << self
31 32 33 |
# File 'lib/Eodhd/EodBulkLastDay.rb', line 31 def adjusted_close @adjusted_close end |
#close ⇒ Object (readonly)
class << self
31 32 33 |
# File 'lib/Eodhd/EodBulkLastDay.rb', line 31 def close @close end |
#code ⇒ Object (readonly)
class << self
31 32 33 |
# File 'lib/Eodhd/EodBulkLastDay.rb', line 31 def code @code end |
#date ⇒ Object (readonly)
class << self
31 32 33 |
# File 'lib/Eodhd/EodBulkLastDay.rb', line 31 def date @date end |
#exchange_short_name ⇒ Object (readonly)
class << self
31 32 33 |
# File 'lib/Eodhd/EodBulkLastDay.rb', line 31 def exchange_short_name @exchange_short_name end |
#high ⇒ Object (readonly)
class << self
31 32 33 |
# File 'lib/Eodhd/EodBulkLastDay.rb', line 31 def high @high end |
#low ⇒ Object (readonly)
class << self
31 32 33 |
# File 'lib/Eodhd/EodBulkLastDay.rb', line 31 def low @low end |
#open ⇒ Object (readonly)
class << self
31 32 33 |
# File 'lib/Eodhd/EodBulkLastDay.rb', line 31 def open @open end |
#volume ⇒ Object (readonly)
class << self
31 32 33 |
# File 'lib/Eodhd/EodBulkLastDay.rb', line 31 def volume @volume end |
Class Method Details
.all(client: nil, api_token: nil, exchange_code:, date:) ⇒ Object
7 8 9 |
# File 'lib/Eodhd/EodBulkLastDay.rb', line 7 def all(client: nil, api_token: nil, exchange_code:, date:) load(client: client, api_token: api_token, exchange_code: exchange_code, date:) end |