Sha256: de76a8e8b743113b2b135cc6d6e072735153ad152f6f2f8a8676490108b4fc3d
Contents?: true
Size: 481 Bytes
Versions: 9
Compression:
Stored size: 481 Bytes
Contents
module Youroom class Participation < 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, Fixnum) } @room_id, @participation_id = room_id, participation_id super(access_token, url) end def path File.join(url, "group", room_id.to_s, "participations", participation_id.to_s+".json") end end end
Version data entries
9 entries across 9 versions & 1 rubygems