class SyoboiCalendar::Resources::ProgramResource
Public Instance Methods
channel_id()
click to toggle source
@return [Integer, nil]
# File lib/syoboi_calendar/resources/program_resource.rb, line 7 def channel_id if source["ChID"] source["ChID"].to_i end end
comment()
click to toggle source
@return [String, nil]
# File lib/syoboi_calendar/resources/program_resource.rb, line 14 def comment source["ProgComment"] end
count()
click to toggle source
@return [Integer, nil]
# File lib/syoboi_calendar/resources/program_resource.rb, line 19 def count if source["Count"] source["Count"].to_i end end
deleted?()
click to toggle source
@return [Boolean]
# File lib/syoboi_calendar/resources/program_resource.rb, line 26 def deleted? source["Deleted"] != "0" end
Also aliased as: deleted
finished_at()
click to toggle source
@return [Time, nil]
# File lib/syoboi_calendar/resources/program_resource.rb, line 32 def finished_at if source["EdTime"] ::Time.parse(source["EdTime"]) end end
flag()
click to toggle source
@return [Integer, nil]
# File lib/syoboi_calendar/resources/program_resource.rb, line 39 def flag if source["Flag"] source["Flag"].to_i end end
id()
click to toggle source
@return [Integer, nil]
# File lib/syoboi_calendar/resources/program_resource.rb, line 46 def id if source["PID"] source["PID"].to_i end end
iepg_name()
click to toggle source
@return [String, nil]
# File lib/syoboi_calendar/resources/program_resource.rb, line 53 def iepg_name source["ChiEPGName"] end
rerun?()
click to toggle source
@return [Boolean]
# File lib/syoboi_calendar/resources/program_resource.rb, line 58 def rerun? !flag.nil? && flag & 0b1000 != 0 end
revision()
click to toggle source
@return [Integer, nil]
# File lib/syoboi_calendar/resources/program_resource.rb, line 63 def revision if source["Revision"] source["Revision"].to_i end end
started_at()
click to toggle source
@return [Time, nil]
# File lib/syoboi_calendar/resources/program_resource.rb, line 70 def started_at if source["StTime"] ::Time.parse(source["StTime"]) end end
sub_title()
click to toggle source
@return [String, nil]
# File lib/syoboi_calendar/resources/program_resource.rb, line 77 def sub_title source["STSubTitle"] end
title_id()
click to toggle source
@return [Integer]
# File lib/syoboi_calendar/resources/program_resource.rb, line 82 def title_id if source["TID"] source["TID"].to_i end end
warn()
click to toggle source
@return [Integer, nil]
# File lib/syoboi_calendar/resources/program_resource.rb, line 89 def warn if source["Warn"] source["Warn"].to_i end end