Class: Eodhd::ExchangeSymbol

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code:, name:, country:, exchange:, currency:, type:, isin:) ⇒ ExchangeSymbol

Returns a new instance of ExchangeSymbol.



38
39
40
41
42
43
44
45
46
# File 'lib/Eodhd/ExchangeSymbol.rb', line 38

def initialize(code:, name:, country:, exchange:, currency:, type:, isin:)
  @code = code
  @name = name
  @country = country
  @exchange = exchange
  @currency = currency
  @type = type
  @isin = isin
end

Instance Attribute Details

#codeObject (readonly)

class << self



29
30
31
# File 'lib/Eodhd/ExchangeSymbol.rb', line 29

def code
  @code
end

#countryObject (readonly)

class << self



29
30
31
# File 'lib/Eodhd/ExchangeSymbol.rb', line 29

def country
  @country
end

#currencyObject (readonly)

class << self



29
30
31
# File 'lib/Eodhd/ExchangeSymbol.rb', line 29

def currency
  @currency
end

#exchangeObject (readonly)

class << self



29
30
31
# File 'lib/Eodhd/ExchangeSymbol.rb', line 29

def exchange
  @exchange
end

#isinObject (readonly)

class << self



29
30
31
# File 'lib/Eodhd/ExchangeSymbol.rb', line 29

def isin
  @isin
end

#nameObject (readonly)

class << self



29
30
31
# File 'lib/Eodhd/ExchangeSymbol.rb', line 29

def name
  @name
end

#typeObject (readonly)

class << self



29
30
31
# File 'lib/Eodhd/ExchangeSymbol.rb', line 29

def type
  @type
end

Class Method Details

.all(client: nil, api_token: nil, exchange_code: nil) ⇒ Object



7
8
9
# File 'lib/Eodhd/ExchangeSymbol.rb', line 7

def all(client: nil, api_token: nil, exchange_code: nil)
  load(client: client, api_token: api_token, exchange_code: exchange_code)
end