Sha256: f62b2a6a23a2dfc69883ffbd05c01831a4669019996ea53b4f108b3dff575c49

Contents?: true

Size: 286 Bytes

Versions: 9

Compression:

Stored size: 286 Bytes

Contents

module Youroom
  class UnreadTimeline < Request
    # TODO: Request parameter feel bad
    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
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
youroom_api-0.1.4 lib/youroom_api/request/unread_timeline.rb
youroom_api-0.1.3 lib/youroom_api/request/unread_timeline.rb
youroom_api-0.1.2 lib/youroom_api/request/unread_timeline.rb
youroom_api-0.1.1 lib/youroom_api/request/unread_timeline.rb
youroom_api-0.1.0 lib/youroom_api/request/unread_timeline.rb
youroom_api-0.0.13 lib/youroom_api/request/unread_timeline.rb
youroom_api-0.0.12 lib/youroom_api/request/unread_timeline.rb
youroom_api-0.0.11 lib/youroom_api/request/unread_timeline.rb
youroom_api-0.0.10 lib/youroom_api/request/unread_timeline.rb