Class: SyoboiCalendar::Resources::Channel

Inherits:
Base
  • Object
show all
Defined in:
lib/syoboi_calendar/resources/channel.rb

Instance Attribute Summary

Attributes inherited from Base

#response

Instance Method Summary collapse

Methods inherited from Base

#initialize, #updated_at

Constructor Details

This class inherits a constructor from SyoboiCalendar::Resources::Base

Instance Method Details

#commentObject



4
5
6
# File 'lib/syoboi_calendar/resources/channel.rb', line 4

def comment
  response.ChComment
end

#epg_urlObject



8
9
10
# File 'lib/syoboi_calendar/resources/channel.rb', line 8

def epg_url
  response.ChEPGURL
end

#group_idObject



12
13
14
# File 'lib/syoboi_calendar/resources/channel.rb', line 12

def group_id
  response.ChGID.try(:to_i)
end

#idObject



16
17
18
# File 'lib/syoboi_calendar/resources/channel.rb', line 16

def id
  response.ChID.try(:to_i)
end

#iepg_nameObject



32
33
34
# File 'lib/syoboi_calendar/resources/channel.rb', line 32

def iepg_name
  response.ChiEPGName
end

#nameObject



20
21
22
# File 'lib/syoboi_calendar/resources/channel.rb', line 20

def name
  response.ChName
end

#numberObject



24
25
26
# File 'lib/syoboi_calendar/resources/channel.rb', line 24

def number
  response.ChNumber.try(:to_i)
end

#urlObject



28
29
30
# File 'lib/syoboi_calendar/resources/channel.rb', line 28

def url
  response.ChURL
end