Method: UpGuard::EventAction#from_hash
- Defined in:
- lib/upguard/EventAction.rb
#from_hash(h) ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/upguard/EventAction.rb', line 19 def from_hash(h) self.id = h['id'] if h.include?('id') self.name = h['name'] if h.include?('name') self.status = h['status'] if h.include?('status') self.type = h['type'] if h.include?('type') self.variables = h['variables'] if h.include?('variables') self.view = h['view'] if h.include?('view') end |