Class: PuzzlyApiPlugin::Identity

Inherits:
JSONable
  • Object
show all
Defined in:
lib/puzzly_api_plugin/identity.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from JSONable

#copy_to_hash, #to_s

Constructor Details

#initialize(id, name, path) ⇒ Identity

Returns a new instance of Identity.



9
10
11
12
13
# File 'lib/puzzly_api_plugin/identity.rb', line 9

def initialize(id, name, path)
  self['id'] = id
  self['name'] = name
  self['path'] = path
end

Class Method Details

.create(metadata) ⇒ Object



5
6
7
# File 'lib/puzzly_api_plugin/identity.rb', line 5

def self.create()
  Identity.new(.id, .name, .path)
end