Sha256: 8335dd46a2077cde1f9af7766f2f91ce5f02b014721faf0eabfbfdaf30e17394

Contents?: true

Size: 383 Bytes

Versions: 1

Compression:

Stored size: 383 Bytes

Contents

module Kamerling class Registration < UUIDEntity
  attribute :addr,    Addr
  attribute :client,  Client
  attribute :project, Project

  def to_h
    super
      .reject { |key, _| key == :addr    }.merge(addr.to_h)
      .reject { |key, _| key == :client  }.merge(client_uuid:  client.uuid)
      .reject { |key, _| key == :project }.merge project_uuid: project.uuid
  end
end end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kamerling-0.0.2 lib/kamerling/registration.rb