Class: Bhf::Data::AbstractField

Inherits:
Object
  • Object
show all
Defined in:
lib/bhf/data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(props) ⇒ AbstractField

Returns a new instance of AbstractField.



6
7
8
9
10
11
12
13
# File 'lib/bhf/data.rb', line 6

def initialize(props)
  @name = props[:name]
  @form_type = props[:form_type]
  @display_type = props[:display_type]
  @overwrite_display_type = props[:display_type]
  @info = props[:info]
  @macro = :column
end

Instance Attribute Details

#display_typeObject (readonly)

Returns the value of attribute display_type.



4
5
6
# File 'lib/bhf/data.rb', line 4

def display_type
  @display_type
end

#form_typeObject (readonly)

Returns the value of attribute form_type.



4
5
6
# File 'lib/bhf/data.rb', line 4

def form_type
  @form_type
end

#infoObject (readonly)

Returns the value of attribute info.



4
5
6
# File 'lib/bhf/data.rb', line 4

def info
  @info
end

#macroObject (readonly)

Returns the value of attribute macro.



4
5
6
# File 'lib/bhf/data.rb', line 4

def macro
  @macro
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/bhf/data.rb', line 4

def name
  @name
end

#overwrite_display_typeObject (readonly)

Returns the value of attribute overwrite_display_type.



4
5
6
# File 'lib/bhf/data.rb', line 4

def overwrite_display_type
  @overwrite_display_type
end

#overwrite_typeObject (readonly)

Returns the value of attribute overwrite_type.



4
5
6
# File 'lib/bhf/data.rb', line 4

def overwrite_type
  @overwrite_type
end