Class: Alpaca::Trade::Api::Calendar
- Inherits:
-
Object
- Object
- Alpaca::Trade::Api::Calendar
- Defined in:
- lib/alpaca/trade/api/calendar.rb
Instance Attribute Summary collapse
-
#close ⇒ Object
readonly
Returns the value of attribute close.
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#open ⇒ Object
readonly
Returns the value of attribute open.
Instance Method Summary collapse
-
#initialize(json) ⇒ Calendar
constructor
A new instance of Calendar.
Constructor Details
#initialize(json) ⇒ Calendar
Returns a new instance of Calendar.
9 10 11 12 13 |
# File 'lib/alpaca/trade/api/calendar.rb', line 9 def initialize(json) @date = json['date'] @open = json['open'] @close = json['close'] end |
Instance Attribute Details
#close ⇒ Object (readonly)
Returns the value of attribute close.
7 8 9 |
# File 'lib/alpaca/trade/api/calendar.rb', line 7 def close @close end |
#date ⇒ Object (readonly)
Returns the value of attribute date.
7 8 9 |
# File 'lib/alpaca/trade/api/calendar.rb', line 7 def date @date end |
#open ⇒ Object (readonly)
Returns the value of attribute open.
7 8 9 |
# File 'lib/alpaca/trade/api/calendar.rb', line 7 def open @open end |