Sha256: 77d26cad930dd63d89758d0d917f78db23329b50c573b82f91685c48ac9796ad
Contents?: true
Size: 540 Bytes
Versions: 1
Compression:
Stored size: 540 Bytes
Contents
module Youroom class Picture < Request attr_reader :room_id, :participation_id def initialize(access_token, room_id, participation_id=nil, url=BASE_URL) required_structure(room_id, String, Integer) @room_id, @participation_id = room_id, participation_id super(access_token, url) end def path if participation_id File.join(url, "r", room_id, "participations", participation_id, "picture.image") else File.join(url, "r", room_id, "picture.image") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
youroom_api-0.1.4 | lib/youroom_api/request/get_picture.rb |