Class: Elmas::User

Inherits:
Object
  • Object
show all
Includes:
Resource
Defined in:
lib/elmas/resources/user.rb

Instance Attribute Summary

Attributes included from Resource

#attributes, #response, #url

Instance Method Summary collapse

Methods included from Resource

#delete, #find, #find_all, #find_by, #get, #id, #id?, #initialize, #method_missing, #save, #valid?

Methods included from Resource::Sanitizer

#sanitize, #sanitize_date_time, #sanitize_has_many, #sanitize_relationship

Methods included from Resource::UriMethods

#apply_filters, #apply_order, #apply_select, #base_filter, #basic_identifier_uri, #query_attribute, #sanitize_value, #uri

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Elmas::Resource

Instance Method Details

#base_pathObject



7
8
9
# File 'lib/elmas/resources/user.rb', line 7

def base_path
  "users/Users"
end

#mandatory_attributesObject



11
12
13
# File 'lib/elmas/resources/user.rb', line 11

def mandatory_attributes
  []
end

#other_attributesObject



16
17
18
19
20
21
22
23
24
25
# File 'lib/elmas/resources/user.rb', line 16

def other_attributes
  %i[
    birth_date birth_name created creator creator_full_name customer
    customer_name email end_date first_name full_name gender
    has_registered_for_two_step_verification has_two_step_verification
    initials language last_login last_name middle_name mobile modified
    modifier modifier_full_name nationality notes phone phone_extension
    profile_code start_date start_division title user_name
  ]
end