Class: SyoboiCalendar::Resources::ChannelResource
Instance Attribute Summary
Attributes inherited from BaseResource
#source
Instance Method Summary
collapse
#initialize, #updated_at
Instance Method Details
#channel_group_id ⇒ Integer?
5
6
7
8
9
|
# File 'lib/syoboi_calendar/resources/channel_resource.rb', line 5
def channel_group_id
if source["ChGID"]
source["ChGID"].to_i
end
end
|
12
13
14
|
# File 'lib/syoboi_calendar/resources/channel_resource.rb', line 12
def
source["ChComment"]
end
|
#epg_url ⇒ String?
17
18
19
|
# File 'lib/syoboi_calendar/resources/channel_resource.rb', line 17
def epg_url
source["ChEPGURL"]
end
|
#id ⇒ Integer?
22
23
24
25
26
|
# File 'lib/syoboi_calendar/resources/channel_resource.rb', line 22
def id
if source["ChID"]
source["ChID"].to_i
end
end
|
#iepg_name ⇒ String?
29
30
31
|
# File 'lib/syoboi_calendar/resources/channel_resource.rb', line 29
def iepg_name
source["ChiEPGName"]
end
|
#name ⇒ String?
34
35
36
|
# File 'lib/syoboi_calendar/resources/channel_resource.rb', line 34
def name
source["ChName"]
end
|
#number ⇒ Integer?
39
40
41
42
43
|
# File 'lib/syoboi_calendar/resources/channel_resource.rb', line 39
def number
if source["ChNumber"]
source["ChNumber"].to_i
end
end
|
#url ⇒ String?
46
47
48
|
# File 'lib/syoboi_calendar/resources/channel_resource.rb', line 46
def url
source["ChURL"]
end
|