Class: Hotchoc::Topic

Inherits:
Base
  • Object
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_atObject



15
16
17
# File 'lib/hotchoc/topic.rb', line 15

def created_at
  Time.parse(@item['created_at'])
end

#idObject



3
4
5
# File 'lib/hotchoc/topic.rb', line 3

def id
  @item['id']
end

#identifierObject



11
12
13
# File 'lib/hotchoc/topic.rb', line 11

def identifier
  @item['identifier']
end

#inspectObject



23
24
25
# File 'lib/hotchoc/topic.rb', line 23

def inspect
  %(#<Hotchoc::Topic: name="#{name}">)
end

#nameObject



7
8
9
# File 'lib/hotchoc/topic.rb', line 7

def name
  @item['name']
end

#updated_atObject



19
20
21
# File 'lib/hotchoc/topic.rb', line 19

def updated_at
  Time.parse(@item['updated_at'])
end