Class: SyoboiCalendar::Resources::ProgramResource
Instance Attribute Summary
Attributes inherited from BaseResource
#source
Instance Method Summary
collapse
#initialize, #updated_at
Instance Method Details
#channel_id ⇒ Integer?
5
6
7
8
9
|
# File 'lib/syoboi_calendar/resources/program_resource.rb', line 5
def channel_id
if source["ChID"]
source["ChID"].to_i
end
end
|
12
13
14
|
# File 'lib/syoboi_calendar/resources/program_resource.rb', line 12
def
source["ProgComment"]
end
|
#count ⇒ Integer?
17
18
19
20
21
|
# File 'lib/syoboi_calendar/resources/program_resource.rb', line 17
def count
if source["Count"]
source["Count"].to_i
end
end
|
#deleted? ⇒ Boolean
Also known as:
deleted
24
25
26
|
# File 'lib/syoboi_calendar/resources/program_resource.rb', line 24
def deleted?
source["Deleted"] != "0"
end
|
#finished_at ⇒ Time?
30
31
32
33
34
|
# File 'lib/syoboi_calendar/resources/program_resource.rb', line 30
def finished_at
if source["EdTime"]
::Time.parse(source["EdTime"])
end
end
|
#flag ⇒ Integer?
37
38
39
40
41
|
# File 'lib/syoboi_calendar/resources/program_resource.rb', line 37
def flag
if source["Flag"]
source["Flag"].to_i
end
end
|
#id ⇒ Integer?
44
45
46
47
48
|
# File 'lib/syoboi_calendar/resources/program_resource.rb', line 44
def id
if source["PID"]
source["PID"].to_i
end
end
|
#iepg_name ⇒ String?
51
52
53
|
# File 'lib/syoboi_calendar/resources/program_resource.rb', line 51
def iepg_name
source["ChiEPGName"]
end
|
#revision ⇒ Integer?
56
57
58
59
60
|
# File 'lib/syoboi_calendar/resources/program_resource.rb', line 56
def revision
if source["Revision"]
source["Revision"].to_i
end
end
|
#started_at ⇒ Time?
63
64
65
66
67
|
# File 'lib/syoboi_calendar/resources/program_resource.rb', line 63
def started_at
if source["StTime"]
::Time.parse(source["StTime"])
end
end
|
#sub_title ⇒ String?
70
71
72
|
# File 'lib/syoboi_calendar/resources/program_resource.rb', line 70
def sub_title
source["STSubTitle"]
end
|
#title_id ⇒ Integer
75
76
77
78
79
|
# File 'lib/syoboi_calendar/resources/program_resource.rb', line 75
def title_id
if source["TID"]
source["TID"].to_i
end
end
|
#warn ⇒ Integer?
82
83
84
85
86
|
# File 'lib/syoboi_calendar/resources/program_resource.rb', line 82
def warn
if source["Warn"]
source["Warn"].to_i
end
end
|