Class: The86::Client::Post
Instance Attribute Summary
Attributes inherited from Resource
#oauth_token, #parent
Instance Method Summary
collapse
#hide, #unhide
Methods inherited from Resource
#==, accepts_nested_attributes_for, belongs_to, collection_path, #delete!, has_many, has_one, #load, model_name, #patch, path, #persisted?, #resource_path, #save, #sendable_attributes, #to_key, #to_model, #to_param, #url_id
Instance Method Details
#reply(attributes) ⇒ Object
25
26
27
28
29
|
# File 'lib/the86-client/post.rb', line 25
def reply(attributes)
conversation.posts.create(
attributes.merge(in_reply_to_id: id)
)
end
|
#reply? ⇒ Boolean
21
22
23
|
# File 'lib/the86-client/post.rb', line 21
def reply?
!!in_reply_to_id
end
|