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
14
15
16
# File 'lib/bhf/data.rb', line 6

def initialize(props)
  @name = props[:name]
  @form_type = props[:form_type]
  @show_type = props[:show_type]
  @overwrite_show_type = props[:show_type]
  @display_type = props[:display_type]
  @overwrite_display_type = props[:display_type]
  @info = props[:info]
  @macro = :column
  @link = props[:link].downcase.to_sym unless props[:link].blank?
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

Returns the value of attribute link.



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

def link
  @link
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_show_typeObject (readonly)

Returns the value of attribute overwrite_show_type.



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

def overwrite_show_type
  @overwrite_show_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

#show_typeObject (readonly)

Returns the value of attribute show_type.



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

def show_type
  @show_type
end