Class: Eodhd::EodBulkLastDay

Inherits:
Object
  • Object
show all
Defined in:
lib/Eodhd/EodBulkLastDay.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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_closeObject (readonly)

class << self



31
32
33
# File 'lib/Eodhd/EodBulkLastDay.rb', line 31

def adjusted_close
  @adjusted_close
end

#closeObject (readonly)

class << self



31
32
33
# File 'lib/Eodhd/EodBulkLastDay.rb', line 31

def close
  @close
end

#codeObject (readonly)

class << self



31
32
33
# File 'lib/Eodhd/EodBulkLastDay.rb', line 31

def code
  @code
end

#dateObject (readonly)

class << self



31
32
33
# File 'lib/Eodhd/EodBulkLastDay.rb', line 31

def date
  @date
end

#exchange_short_nameObject (readonly)

class << self



31
32
33
# File 'lib/Eodhd/EodBulkLastDay.rb', line 31

def exchange_short_name
  @exchange_short_name
end

#highObject (readonly)

class << self



31
32
33
# File 'lib/Eodhd/EodBulkLastDay.rb', line 31

def high
  @high
end

#lowObject (readonly)

class << self



31
32
33
# File 'lib/Eodhd/EodBulkLastDay.rb', line 31

def low
  @low
end

#openObject (readonly)

class << self



31
32
33
# File 'lib/Eodhd/EodBulkLastDay.rb', line 31

def open
  @open
end

#volumeObject (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