Class: SyoboiCalendar::Resources::ChannelGroupResource

Inherits:
BaseResource
  • Object
show all
Defined in:
lib/syoboi_calendar/resources/channel_group_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

#commentString?



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

def comment
  response.ChGroupComment
end

#idInteger?



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

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

#nameString?



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

def name
  response.ChGroupName
end

#order_scoreInteger?



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

def order_score
  response.ChGroupOrder.try(:to_i)
end