Class: BigDoor::Level
- Inherits:
-
ResourceEndUser
- Object
- OpenStruct
- Resource
- ResourceEndUser
- BigDoor::Level
- Defined in:
- lib/big_door/level.rb
Overview
This module provides Level Resource object corresponding to /end_user/id/level BigDoor API end point
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ Level
constructor
Initialize new Level object with optional Hash.
Methods inherited from ResourceEndUser
all, end_point, #end_point, parent_end_point, #parent_id_attr
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 = {}) ⇒ Level
Initialize new Level object with optional Hash
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/big_door/level.rb', line 13 def initialize( hash = {} ) $log.debug( "Level init with hash = #{hash.inspect}") default_values = { 'transaction_group_id' => 0, 'end_user_login' => nil, 'named_level_id' => nil, } default_values.merge!( hash ) $log.debug( "Level default_values = #{default_values.inspect}") super( default_values ) end |