Class: SyoboiCalendar::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/syoboi_calendar/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



5
6
7
# File 'lib/syoboi_calendar/client.rb', line 5

def initialize(options = {})
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/syoboi_calendar/client.rb', line 3

def options
  @options
end

Instance Method Details

#channels(options = {}) ⇒ Object



9
10
11
# File 'lib/syoboi_calendar/client.rb', line 9

def channels(options = {})
  get(Queries::Channel, options)
end

#programs(options = {}) ⇒ Object



13
14
15
# File 'lib/syoboi_calendar/client.rb', line 13

def programs(options = {})
  get(Queries::Program, options)
end

#titles(options = {}) ⇒ Object



17
18
19
# File 'lib/syoboi_calendar/client.rb', line 17

def titles(options = {})
  get(Queries::Title, options)
end