Sha256: 58222735cd5cda295385a6f1258e26f92349a9a27d30fc2095a065781fd4e08d

Contents?: true

Size: 367 Bytes

Versions: 9

Compression:

Stored size: 367 Bytes

Contents

module Youroom
  class GetUserList < Request
    attr_reader :billing_id

    def initialize(access_token, billing_id, url=BASE_URL)
      required_structure(billing_id, String, Fixnum)
      @billing_id = billing_id.to_s
      super(access_token, url)
    end

    def path
      File.join(url, 'billings', billing_id, 'billing_users?format=json')
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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