Class: Hotchoc::Blocks::Base
Instance Attribute Summary
#item
Instance Method Summary
collapse
#initialize
Constructor Details
This class inherits a constructor from Hotchoc::Base
Instance Method Details
#created_at ⇒ Object
16
17
18
|
# File 'lib/hotchoc/blocks/base.rb', line 16
def created_at
Time.parse(@item['created_at'])
end
|
#id ⇒ Object
4
5
6
|
# File 'lib/hotchoc/blocks/base.rb', line 4
def id
@item['id']
end
|
#position ⇒ Object
12
13
14
|
# File 'lib/hotchoc/blocks/base.rb', line 12
def position
@item['position']
end
|
#type ⇒ Object
8
9
10
|
# File 'lib/hotchoc/blocks/base.rb', line 8
def type
@item['type']
end
|
#updated_at ⇒ Object
20
21
22
|
# File 'lib/hotchoc/blocks/base.rb', line 20
def updated_at
Time.parse(@item['updated_at'])
end
|