Class: Youroom::UnreadTimeline
- Defined in:
- lib/youroom_api/request/unread_timeline.rb
Instance Attribute Summary
Attributes inherited from Request
Attributes inherited from Base
Instance Method Summary collapse
-
#path ⇒ Object
TODO: Request parameter feel bad.
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, #initialize, #mark_read, #mark_unread, #post
Constructor Details
This class inherits a constructor from Youroom::Request
Instance Method Details
#path ⇒ Object
TODO: Request parameter feel bad
4 5 6 7 8 9 10 |
# File 'lib/youroom_api/request/unread_timeline.rb', line 4 def path if url == BASE_URL File.join(url, '?format=json&read_state=unread') else File.join(url, 'home', '?format=json&read_state=unread') end end |