Class: Hotchoc::Topic
- Inherits:
-
Base
- Object
- Base
- Hotchoc::Topic
show all
- Defined in:
- lib/hotchoc/topic.rb
Instance Attribute Summary
Attributes inherited from Base
#item
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Constructor Details
This class inherits a constructor from Hotchoc::Base
Instance Method Details
#created_at ⇒ Object
15
16
17
|
# File 'lib/hotchoc/topic.rb', line 15
def created_at
Time.parse(@item['created_at'])
end
|
#id ⇒ Object
3
4
5
|
# File 'lib/hotchoc/topic.rb', line 3
def id
@item['id']
end
|
#identifier ⇒ Object
11
12
13
|
# File 'lib/hotchoc/topic.rb', line 11
def identifier
@item['identifier']
end
|
#inspect ⇒ Object
23
24
25
|
# File 'lib/hotchoc/topic.rb', line 23
def inspect
%(#<Hotchoc::Topic: name="#{name}">)
end
|
#name ⇒ Object
7
8
9
|
# File 'lib/hotchoc/topic.rb', line 7
def name
@item['name']
end
|
#updated_at ⇒ Object
19
20
21
|
# File 'lib/hotchoc/topic.rb', line 19
def updated_at
Time.parse(@item['updated_at'])
end
|