Class: Oksky::Chat::Object::MemosResource
- Inherits:
-
Base
- Object
- Base
- Oksky::Chat::Object::MemosResource
show all
- Defined in:
- lib/oksky/chat/object/memos_resource.rb
Instance Method Summary
collapse
Methods inherited from Base
#[], #initialize
Instance Method Details
#created_at_unix ⇒ Object
26
27
28
|
# File 'lib/oksky/chat/object/memos_resource.rb', line 26
def created_at_unix
content_value("created_at_unix")
end
|
6
7
8
|
# File 'lib/oksky/chat/object/memos_resource.rb', line 6
def id
@src.dig("id")
end
|
30
31
32
33
34
35
36
|
# File 'lib/oksky/chat/object/memos_resource.rb', line 30
def memo
if @src.has_key?('attributes')
@src['attributes']
else
@src
end
end
|
#relationships ⇒ Object
38
39
40
41
42
43
44
|
# File 'lib/oksky/chat/object/memos_resource.rb', line 38
def relationships
if exist_relationships?
return @src['relationships']
else
{}
end
end
|
#resource_id ⇒ Object
10
11
12
|
# File 'lib/oksky/chat/object/memos_resource.rb', line 10
def resource_id
content_value("resource_id")
end
|
#resource_type ⇒ Object
14
15
16
|
# File 'lib/oksky/chat/object/memos_resource.rb', line 14
def resource_type
content_value("resource_type")
end
|
22
23
24
|
# File 'lib/oksky/chat/object/memos_resource.rb', line 22
def text
content_value("text")
end
|
18
19
20
|
# File 'lib/oksky/chat/object/memos_resource.rb', line 18
def user_id
content_value("user_id")
end
|