Sha256: 28577f017b50d9846a2077c74cf9566fa9215bd253e9a9b1418a58fa8e456d47

Contents?: true

Size: 364 Bytes

Versions: 8

Compression:

Stored size: 364 Bytes

Contents

# frozen_string_literal: true

module Shark
  module FormService
    module V2
      class Form < V2::Base
        has_many :versions

        # @example
        #   form = Shark::FormService::V2::Form.find(id)
        #   form.activate
        #
        # @api public
        def activate
          update(state: 'active')
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bima-shark-sdk-3.1.1 lib/shark/form_service/v2/form.rb
bima-shark-sdk-2.5.0 lib/shark/form_service/v2/form.rb
bima-shark-sdk-3.1.0 lib/shark/form_service/v2/form.rb
bima-shark-sdk-3.0.0 lib/shark/form_service/v2/form.rb
bima-shark-sdk-2.4.4 lib/shark/form_service/v2/form.rb
bima-shark-sdk-2.4.3 lib/shark/form_service/v2/form.rb
bima-shark-sdk-2.4.2 lib/shark/form_service/v2/form.rb
bima-shark-sdk-2.4.1 lib/shark/form_service/v2/form.rb