Class: Zaikio::Directory::Connection
- Defined in:
- lib/zaikio/directory/connection.rb
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Connection
constructor
A new instance of Connection.
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 |