Class: Formalism::ModelForms::Conditions::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/formalism/model_forms/conditions/_base.rb

Overview

Base class for ‘:condition` form field option

Instance Method Summary collapse

Constructor Details

#initialize(name, value) ⇒ Base

Returns a new instance of Base.



8
9
10
11
# File 'lib/formalism/model_forms/conditions/_base.rb', line 8

def initialize(name, value)
	@name = name
	@value = value
end

Instance Method Details

#resultObject



13
14
15
# File 'lib/formalism/model_forms/conditions/_base.rb', line 13

def result
	Sequel[@name => @value]
end