Class: Zaikio::Directory::Connection

Inherits:
Base
  • Object
show all
Defined in:
lib/zaikio/directory/connection.rb

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Connection

Returns a new instance of Connection.



8
9
10
11
12
13
14
15
16
# File 'lib/zaikio/directory/connection.rb', line 8

def initialize(attributes = {})
  if attributes["connectable_id"]
    super(attributes.merge(
      "id" => "#{attributes['connectable_type']}-#{attributes['connectable_id']}"
    ))
  else
    super
  end
end