Class: Komonjo::Model::Channel
- Inherits:
-
Object
- Object
- Komonjo::Model::Channel
- Defined in:
- lib/komonjo/models/channel.rb
Overview
slacke channel
Instance Attribute Summary collapse
-
#created ⇒ Object
Returns the value of attribute created.
-
#creator ⇒ Object
Returns the value of attribute creator.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_archived ⇒ Object
Returns the value of attribute is_archived.
-
#is_channel ⇒ Object
Returns the value of attribute is_channel.
-
#is_general ⇒ Object
Returns the value of attribute is_general.
-
#is_member ⇒ Object
Returns the value of attribute is_member.
-
#last_read ⇒ Object
Returns the value of attribute last_read.
-
#latest ⇒ Object
Returns the value of attribute latest.
-
#members ⇒ Object
Returns the value of attribute members.
-
#name ⇒ Object
Returns the value of attribute name.
-
#purpose ⇒ Object
Returns the value of attribute purpose.
-
#topic ⇒ Object
Returns the value of attribute topic.
-
#unread_count ⇒ Object
Returns the value of attribute unread_count.
-
#unread_count_display ⇒ Object
Returns the value of attribute unread_count_display.
Class Method Summary collapse
Instance Attribute Details
#created ⇒ Object
Returns the value of attribute created.
5 6 7 |
# File 'lib/komonjo/models/channel.rb', line 5 def created @created end |
#creator ⇒ Object
Returns the value of attribute creator.
5 6 7 |
# File 'lib/komonjo/models/channel.rb', line 5 def creator @creator end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/komonjo/models/channel.rb', line 5 def id @id end |
#is_archived ⇒ Object
Returns the value of attribute is_archived.
5 6 7 |
# File 'lib/komonjo/models/channel.rb', line 5 def is_archived @is_archived end |
#is_channel ⇒ Object
Returns the value of attribute is_channel.
5 6 7 |
# File 'lib/komonjo/models/channel.rb', line 5 def is_channel @is_channel end |
#is_general ⇒ Object
Returns the value of attribute is_general.
5 6 7 |
# File 'lib/komonjo/models/channel.rb', line 5 def is_general @is_general end |
#is_member ⇒ Object
Returns the value of attribute is_member.
5 6 7 |
# File 'lib/komonjo/models/channel.rb', line 5 def is_member @is_member end |
#last_read ⇒ Object
Returns the value of attribute last_read.
5 6 7 |
# File 'lib/komonjo/models/channel.rb', line 5 def last_read @last_read end |
#latest ⇒ Object
Returns the value of attribute latest.
5 6 7 |
# File 'lib/komonjo/models/channel.rb', line 5 def latest @latest end |
#members ⇒ Object
Returns the value of attribute members.
5 6 7 |
# File 'lib/komonjo/models/channel.rb', line 5 def members @members end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/komonjo/models/channel.rb', line 5 def name @name end |
#purpose ⇒ Object
Returns the value of attribute purpose.
5 6 7 |
# File 'lib/komonjo/models/channel.rb', line 5 def purpose @purpose end |
#topic ⇒ Object
Returns the value of attribute topic.
5 6 7 |
# File 'lib/komonjo/models/channel.rb', line 5 def topic @topic end |
#unread_count ⇒ Object
Returns the value of attribute unread_count.
5 6 7 |
# File 'lib/komonjo/models/channel.rb', line 5 def unread_count @unread_count end |
#unread_count_display ⇒ Object
Returns the value of attribute unread_count_display.
5 6 7 |
# File 'lib/komonjo/models/channel.rb', line 5 def unread_count_display @unread_count_display end |
Class Method Details
.create(hash) ⇒ Object
9 10 11 12 13 |
# File 'lib/komonjo/models/channel.rb', line 9 def self.create(hash) new.tap do |e| hash.each { |k, v| e.instance_variable_set("@#{k}", v) } end end |