Class: Alpaca::Trade::Api::Calendar

Inherits:
Object
  • Object
show all
Defined in:
lib/alpaca/trade/api/calendar.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#closeObject (readonly)

Returns the value of attribute close.



7
8
9
# File 'lib/alpaca/trade/api/calendar.rb', line 7

def close
  @close
end

#dateObject (readonly)

Returns the value of attribute date.



7
8
9
# File 'lib/alpaca/trade/api/calendar.rb', line 7

def date
  @date
end

#openObject (readonly)

Returns the value of attribute open.



7
8
9
# File 'lib/alpaca/trade/api/calendar.rb', line 7

def open
  @open
end