Class: Eodhd::ExchangeSymbol
- Inherits:
-
Object
- Object
- Eodhd::ExchangeSymbol
- Defined in:
- lib/Eodhd/ExchangeSymbol.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
class << self.
-
#country ⇒ Object
readonly
class << self.
-
#currency ⇒ Object
readonly
class << self.
-
#exchange ⇒ Object
readonly
class << self.
-
#isin ⇒ Object
readonly
class << self.
-
#name ⇒ Object
readonly
class << self.
-
#type ⇒ Object
readonly
class << self.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code:, name:, country:, exchange:, currency:, type:, isin:) ⇒ ExchangeSymbol
constructor
A new instance of ExchangeSymbol.
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
#code ⇒ Object (readonly)
class << self
29 30 31 |
# File 'lib/Eodhd/ExchangeSymbol.rb', line 29 def code @code end |
#country ⇒ Object (readonly)
class << self
29 30 31 |
# File 'lib/Eodhd/ExchangeSymbol.rb', line 29 def country @country end |
#currency ⇒ Object (readonly)
class << self
29 30 31 |
# File 'lib/Eodhd/ExchangeSymbol.rb', line 29 def currency @currency end |
#exchange ⇒ Object (readonly)
class << self
29 30 31 |
# File 'lib/Eodhd/ExchangeSymbol.rb', line 29 def exchange @exchange end |
#isin ⇒ Object (readonly)
class << self
29 30 31 |
# File 'lib/Eodhd/ExchangeSymbol.rb', line 29 def isin @isin end |
#name ⇒ Object (readonly)
class << self
29 30 31 |
# File 'lib/Eodhd/ExchangeSymbol.rb', line 29 def name @name end |
#type ⇒ Object (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 |