Method: Megam::SshKey#from_hash

Defined in:
lib/megam/core/sshkey.rb

#from_hash(o) ⇒ Object



137
138
139
140
141
142
143
# File 'lib/megam/core/sshkey.rb', line 137

def from_hash(o)
  @id        = o[:id] if o.has_key?(:id)
  @name = o[:name] if o.has_key?(:name)      
  @path   = o[:path] if o.has_key?(:path)   
  @created_at   = o[:created_at] if o.has_key?(:created_at)
  self
end