Module: Findable::Schema

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/findable/schema.rb,
lib/findable/schema/conversion.rb

Defined Under Namespace

Modules: ClassMethods Classes: Conversion

Instance Method Summary collapse

Instance Method Details

#attribute=(attr, value) ⇒ Object



29
30
31
# File 'lib/findable/schema.rb', line 29

def attribute=(attr, value)
  attributes[attr] = value
end

#attribute?(attr) ⇒ Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/findable/schema.rb', line 33

def attribute?(attr)
  attributes[attr].present?
end