Class: SyoboiCalendar::Resources::ChannelResource

Inherits:
BaseResource
  • Object
show all
Defined in:
lib/syoboi_calendar/resources/channel_resource.rb

Instance Attribute Summary

Attributes inherited from BaseResource

#response

Instance Method Summary collapse

Methods inherited from BaseResource

#initialize, #updated_at

Constructor Details

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

Instance Method Details

#channel_group_idInteger?

Returns:

  • (Integer, nil)


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

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

#commentString?

Returns:

  • (String, nil)


10
11
12
# File 'lib/syoboi_calendar/resources/channel_resource.rb', line 10

def comment
  response.ChComment
end

#epg_urlString?

Returns:

  • (String, nil)


15
16
17
# File 'lib/syoboi_calendar/resources/channel_resource.rb', line 15

def epg_url
  response.ChEPGURL
end

#idInteger?

Returns:

  • (Integer, nil)


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

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

#iepg_nameString?

Returns:

  • (String, nil)


25
26
27
# File 'lib/syoboi_calendar/resources/channel_resource.rb', line 25

def iepg_name
  response.ChiEPGName
end

#nameString?

Returns:

  • (String, nil)


30
31
32
# File 'lib/syoboi_calendar/resources/channel_resource.rb', line 30

def name
  response.ChName
end

#numberInteger?

Returns:

  • (Integer, nil)


35
36
37
# File 'lib/syoboi_calendar/resources/channel_resource.rb', line 35

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

#urlString?

Returns:

  • (String, nil)


40
41
42
# File 'lib/syoboi_calendar/resources/channel_resource.rb', line 40

def url
  response.ChURL
end