Class: Youroom::GetUserList

Inherits:
Request show all
Defined in:
lib/youroom_api/request/get_user_list.rb

Instance Attribute Summary collapse

Attributes inherited from Request

#access_token

Attributes inherited from Base

#host, #port, #url

Instance Method Summary collapse

Methods inherited from Request

#create_entry, #create_participation, #create_room, #create_user, #delete, #destroy_entry, #destroy_participation, #get, #get_all_timeline, #get_attachment, #get_entry, #get_my_group, #get_picture, #get_room_list, #get_room_timeline, #get_unread_timeline, #get_user_list, #get_verify_credentials, #mark_read, #mark_unread, #post

Constructor Details

#initialize(access_token, billing_id, url = BASE_URL) ⇒ GetUserList

Returns a new instance of GetUserList.



5
6
7
8
9
# File 'lib/youroom_api/request/get_user_list.rb', line 5

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

Instance Attribute Details

#billing_idObject (readonly)

Returns the value of attribute billing_id.



3
4
5
# File 'lib/youroom_api/request/get_user_list.rb', line 3

def billing_id
  @billing_id
end

Instance Method Details

#pathObject



11
12
13
# File 'lib/youroom_api/request/get_user_list.rb', line 11

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