Sha256: c6c5714bc2ed55488bdd728e65813628aa37b0930f570b91ffb58f6636a08cf1

Contents?: true

Size: 601 Bytes

Versions: 9

Compression:

Stored size: 601 Bytes

Contents

module Youroom

  class OAuth < Base
    attr_accessor :request

    def initialize(access_token, url=BASE_URL)
      @request = Request.new(access_token, url)
    end

    def entry(room_id, mutter_id=nil)
      request.get_entry(room_id, mutter_id)
    end

    def participation(room_id, participation_id)
      request.get_participation(room_id, participation_id)
    end

    def all_timeline
      request.get_all_timeline
    end

    def unread_timeline
      request.get_unread_timeline
    end

    def update(room_id, content)
      request.post_entry(room_id, content)
    end
  end
end


Version data entries

9 entries across 9 versions & 1 rubygems

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