Class: Shark::FormService::V2::Form

Inherits:
Base
  • Object
show all
Defined in:
lib/shark/form_service/v2/form.rb

Instance Method Summary collapse

Methods inherited from Base

site

Methods inherited from Base

site

Methods inherited from Base

add_datetime_accessors

Instance Method Details

#activateObject

Examples:

form = Shark::FormService::V2::Form.find(id)
form.activate


14
15
16
# File 'lib/shark/form_service/v2/form.rb', line 14

def activate
  update(state: 'active')
end