Sha256: b46ce6daf195d72e2da379d68fb0e31b2cc22bc577abbd972f3a0cae947db8e9

Contents?: true

Size: 471 Bytes

Versions: 6

Compression:

Stored size: 471 Bytes

Contents

module Youroom
  class Picture < Request
    attr_reader :room_id, :participation_id

    def initialize(access_token, room_id, participation_id,  url=BASE_URL)
      [room_id, participation_id].each {|arg| required_structure(arg, String, Integer) }
      @room_id, @participation_id = room_id, participation_id
      super(access_token, url)
    end

    def path
      File.join(url, "r", room_id, "participations", participation_id, "picture.image")
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
youroom_api-0.1.3 lib/youroom_api/request/get_picture.rb
youroom_api-0.1.2 lib/youroom_api/request/get_picture.rb
youroom_api-0.1.1 lib/youroom_api/request/get_picture.rb
youroom_api-0.1.0 lib/youroom_api/request/get_picture.rb
youroom_api-0.0.13 lib/youroom_api/request/get_picture.rb
youroom_api-0.0.12 lib/youroom_api/request/get_picture.rb