Class: Signable::Model::Column

Inherits:
Struct
  • Object
show all
Includes:
Concerns::Prefix
Defined in:
lib/signable/model/column.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Concerns::Prefix

#match?, #name_with_prefix, #name_without_prefix, #prefix

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



3
4
5
# File 'lib/signable/model/column.rb', line 3

def name
  @name
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



3
4
5
# File 'lib/signable/model/column.rb', line 3

def options
  @options
end

Instance Method Details

#required?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/signable/model/column.rb', line 6

def required?
  options[:presence] == true
end