Class: BigDoor::Good
- Inherits:
-
ResourceEndUser
- Object
- OpenStruct
- Resource
- ResourceEndUser
- BigDoor::Good
- Defined in:
- lib/big_door/good.rb
Overview
This module provides Good Resource object corresponding to /end_user/id/good BigDoor API end point
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ Good
constructor
Initialize new Good object with optional Hash.
-
#parent_id_attr ⇒ Object
Override parent_id_attr from ResourceEndUser Class.
Methods inherited from ResourceEndUser
all, end_point, #end_point, parent_end_point
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 = {}) ⇒ Good
Initialize new Good object with optional Hash
13 14 15 16 17 18 19 20 21 |
# File 'lib/big_door/good.rb', line 13 def initialize( hash = {} ) $log.debug( "Good init with hash = #{hash.inspect}") default_values = { 'named_good_id' => nil, } default_values.merge!( hash ) $log.debug( "Good default_values = #{default_values.inspect}") super( default_values ) end |
Instance Method Details
#parent_id_attr ⇒ Object
Override parent_id_attr from ResourceEndUser Class
@return [String] Parent Id attribute
28 29 30 |
# File 'lib/big_door/good.rb', line 28 def parent_id_attr 'good_receiver' end |