Class: Layer::Resources::Conversation
- Inherits:
-
Layer::Resource
- Object
- Layer::Resource
- Layer::Resources::Conversation
- Defined in:
- lib/layer/resources/conversation.rb
Instance Attribute Summary
Attributes inherited from Layer::Resource
Instance Method Summary collapse
Methods inherited from Layer::Resource
class_name, create, #destroy, find, #initialize, #inspect, list, #method_missing, pluralized_name, #respond_to_missing?, #update, url, #uuid
Constructor Details
This class inherits a constructor from Layer::Resource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Layer::Resource
Instance Method Details
#content ⇒ Object
8 9 10 11 12 |
# File 'lib/layer/resources/conversation.rb', line 8 def content proxy = Layer::ResourceProxy.new(client, self, RichContent) proxy.url = content_url proxy end |
#content_url ⇒ Object
14 15 16 |
# File 'lib/layer/resources/conversation.rb', line 14 def content_url "conversations/#{uuid}/content" end |
#messages ⇒ Object
4 5 6 |
# File 'lib/layer/resources/conversation.rb', line 4 def Layer::ResourceProxy.new(client, self, Message) end |