Method: Megam::SshKey#from_hash
- Defined in:
- lib/megam/core/sshkey.rb
#from_hash(o) ⇒ Object
132 133 134 135 136 137 138 139 140 |
# File 'lib/megam/core/sshkey.rb', line 132 def from_hash(o) @id = o[:id] if o.has_key?(:id) @name = o[:name] if o.has_key?(:name) @org_id = o[:org_id] if o.has_key?(:org_id) @privatekey = o[:privatekey] if o.has_key?(:privatekey) @publickey = o[:publickey] if o.has_key?(:publickey) @created_at = o[:created_at] if o.has_key?(:created_at) self end |