Class: Sirportly::User
- Inherits:
-
DataObject
- Object
- DataObject
- Sirportly::User
- Defined in:
- lib/sirportly/data_objects/user.rb
Instance Attribute Summary
Attributes inherited from DataObject
Class Method Summary collapse
-
.create(client, params = {}) ⇒ Object
Creates a new user and returns a user object.
Methods inherited from DataObject
all, find, #initialize, #inspect, #method_missing
Constructor Details
This class inherits a constructor from Sirportly::DataObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Sirportly::DataObject
Class Method Details
.create(client, params = {}) ⇒ Object
Creates a new user and returns a user object
8 9 10 11 12 13 14 |
# File 'lib/sirportly/data_objects/user.rb', line 8 def self.create(client, params = {}) if req = client.request('users/create', params) self.new(client, req) else false end end |