Class: BigDoor::EndUser

Inherits:
Resource
  • Object
show all
Defined in:
lib/big_door/end_user.rb

Overview

This module provides EndUser Resource object corresponding to /end_user BigDoor API end point

Instance Method Summary collapse

Methods inherited from Resource

all, #delete, #end_point, end_point, end_point_from_classname, #get_id, #instance_to_payload, #load, #response_to_instance, #save

Constructor Details

#initialize(hash = {}) ⇒ EndUser

Initialize new EndUser object with optional Hash

Parameters:

  • hash (Hash) (defaults to: {})

    Optional fields to assign to object



14
15
16
17
18
19
20
21
22
# File 'lib/big_door/end_user.rb', line 14

def initialize( hash = {} ) 
    $log.debug( "EndUser init with hash = #{hash.inspect}")
    default_values = {
        'end_user_login'          => '',
    }
    default_values.merge!( hash )
    $log.debug( "EndUser default_values = #{default_values.inspect}")
    super( default_values )
end

Instance Method Details

#resource_idString

Overrides object resource id

Returns:

  • (String)

    resource id



28
29
30
# File 'lib/big_door/end_user.rb', line 28

def resource_id
    self.
end