Method: Megam::CSAR#from_hash

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

#from_hash(o) ⇒ Object



135
136
137
138
139
140
141
142
# File 'lib/megam/core/csar.rb', line 135

def from_hash(o)
  @id        = o["id"] if o.has_key?("id")
  @desc      = o["desc"] if o.has_key?("desc")
  @link      = o["link"] if o.has_key?("link")
  @yamldata  = o["yamldata"] if o.has_key?("yamldata") 
  @created_at = o["created_at"] if o.has_key?("created_at")
  self
end