Class: SyoboiCalendar::Resources::ChannelGroupResource
- Inherits:
-
BaseResource
- Object
- BaseResource
- SyoboiCalendar::Resources::ChannelGroupResource
show all
- Defined in:
- lib/syoboi_calendar/resources/channel_group_resource.rb
Instance Attribute Summary
Attributes inherited from BaseResource
#source
Instance Method Summary
collapse
#initialize, #updated_at
Instance Method Details
5
6
7
|
# File 'lib/syoboi_calendar/resources/channel_group_resource.rb', line 5
def
source["ChGroupComment"]
end
|
#id ⇒ Integer?
10
11
12
13
14
|
# File 'lib/syoboi_calendar/resources/channel_group_resource.rb', line 10
def id
if source["ChGID"]
source["ChGID"].to_i
end
end
|
#name ⇒ String?
17
18
19
|
# File 'lib/syoboi_calendar/resources/channel_group_resource.rb', line 17
def name
source["ChGroupName"]
end
|
#order ⇒ Integer?
22
23
24
25
26
|
# File 'lib/syoboi_calendar/resources/channel_group_resource.rb', line 22
def order
if source["ChGroupOrder"]
source["ChGroupOrder"].to_i
end
end
|