Class: TryApi::Header

Inherits:
Base
  • Object
show all
Defined in:
app/models/try_api/header.rb

Class Method Summary collapse

Methods inherited from Base

#id, #to_json, typesafe_accessor

Class Method Details

.parse(hash) ⇒ Object



8
9
10
11
12
13
14
# File 'app/models/try_api/header.rb', line 8

def parse(hash)
  instance = self.new
  instance.name = hash[:name]
  instance.global = hash[:global]
  instance.description = hash[:description]
  instance
end