Class: Bling::API::User
Overview
This class is used to make requests to all available actions related to users in Bling api. Is strongly recommended to use the Bling::API module wrapper
Instance Method Summary collapse
-
#create(params) ⇒ Array
Insert a user in Bling.
-
#get(user_id) ⇒ Array
Get a specific object based on user_id.
-
#list ⇒ Array
Get a list of available users.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Bling::API::Request
Instance Method Details
#create(params) ⇒ Array
Insert a user in Bling
57 58 59 |
# File 'lib/bling/api/user.rb', line 57 def create(params) post_request(t_url(:user), parsed_xml(params)) end |
#get(user_id) ⇒ Array
Get a specific object based on user_id
28 29 30 |
# File 'lib/bling/api/user.rb', line 28 def get(user_id) get_request(t_url(:user, user_id)) end |
#list ⇒ Array
Get a list of available users
15 16 17 |
# File 'lib/bling/api/user.rb', line 15 def list get_request(t_url(:users)) end |