Class: BigDoor::URL

Inherits:
ResourceWithAssociation show all
Defined in:
lib/big_door/url.rb

Overview

This module provides URL Resource object corresponding to /url BigDoor API end point

Instance Method Summary collapse

Methods inherited from ResourceWithAssociation

#associate_with

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 = {}) ⇒ URL

Initialize new URL object with optional Hash

Parameters:

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

    Optional fields to assign to object



13
14
15
16
17
18
19
# File 'lib/big_door/url.rb', line 13

def initialize( hash = {} ) 
    $log.debug( "URL init with hash = #{hash.inspect}")
    default_values = { }
    default_values.merge!( hash )
    $log.debug( "URL default_values = #{default_values.inspect}")
    super( default_values )
end