Class: Youroom::DestroyEntry
- Defined in:
- lib/youroom_api/request/destroy_entry.rb
Instance Attribute Summary collapse
-
#mutter_id ⇒ Object
readonly
Returns the value of attribute mutter_id.
-
#room_id ⇒ Object
readonly
Returns the value of attribute room_id.
Attributes inherited from Request
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(access_token, room_id, mutter_id, url = BASE_URL) ⇒ DestroyEntry
constructor
A new instance of DestroyEntry.
- #path ⇒ Object
Methods inherited from Request
#create_entry, #create_participation, #create_room, #create_user, #delete, #destroy_entry, #destroy_participation, #get, #get_all_timeline, #get_attachment, #get_entry, #get_my_group, #get_picture, #get_room_list, #get_room_timeline, #get_unread_timeline, #get_user_list, #get_verify_credentials, #mark_read, #mark_unread, #post
Constructor Details
#initialize(access_token, room_id, mutter_id, url = BASE_URL) ⇒ DestroyEntry
Returns a new instance of DestroyEntry.
5 6 7 8 9 10 |
# File 'lib/youroom_api/request/destroy_entry.rb', line 5 def initialize(access_token, room_id, mutter_id, url=BASE_URL) required_structure(room_id, String, Symbol, Fixnum) required_structure(mutter_id, String, Fixnum) @room_id, @mutter_id = room_id, mutter_id super(access_token, url) end |
Instance Attribute Details
#mutter_id ⇒ Object (readonly)
Returns the value of attribute mutter_id.
3 4 5 |
# File 'lib/youroom_api/request/destroy_entry.rb', line 3 def mutter_id @mutter_id end |
#room_id ⇒ Object (readonly)
Returns the value of attribute room_id.
3 4 5 |
# File 'lib/youroom_api/request/destroy_entry.rb', line 3 def room_id @room_id end |
Instance Method Details
#path ⇒ Object
12 13 14 |
# File 'lib/youroom_api/request/destroy_entry.rb', line 12 def path File.join(url, 'r', room_id.to_s, 'entries', mutter_id.to_s+'?format=json') end |