Class: RouteNGNClient::User
- Inherits:
-
RemoteModel
- Object
- Model
- RemoteModel
- RouteNGNClient::User
- Defined in:
- lib/routengn_client/models/user.rb
Constant Summary
Constants inherited from RemoteModel
RemoteModel::DEFAULT_RESOURCE_ATTRIBUTES
Instance Attribute Summary
Attributes included from RemoteModel::ClassMethods
Attributes inherited from Model
#attributes, #request_account_id
Attributes included from Model::ClassMethods
#children, #only_children, #parents
Instance Method Summary collapse
Methods included from RemoteModel::ClassMethods
#all, #collection_name, #create!, #find, #index_method, #path_base, #path_ext, #set_resource_attributes, #where
Methods inherited from Model
#initialize, #to_hash, #to_json, #to_log
Methods included from Model::ClassMethods
#belongs_to, #from_hash, #from_json, #has_many, #has_one
Methods included from Logging
Constructor Details
This class inherits a constructor from RouteNGNClient::Model
Instance Method Details
#admin? ⇒ Boolean
11 12 13 |
# File 'lib/routengn_client/models/user.rb', line 11 def admin? self.admin.nil? ? false : self.admin end |
#call_processor? ⇒ Boolean
15 16 17 |
# File 'lib/routengn_client/models/user.rb', line 15 def call_processor? self.call_processor.nil? ? false : self.call_processor end |