class Bhf::Platform::Attribute::Abstract
Attributes
info[R]
name[R]
title[R]
Public Class Methods
new(options)
click to toggle source
# File lib/bhf/platform/attribute/abstract.rb, line 6 def initialize(options) @name = options[:name] @title = options[:title] @info = options[:info] @options_form_type = options[:form_type].to_sym if options[:form_type] @options_display_type = options[:display_type].to_sym if options[:display_type] @options_show_type = options[:show_type].to_sym if options[:show_type] @link_platform_settings = options[:link] unless options[:link].blank? end
Public Instance Methods
db_name()
click to toggle source
# File lib/bhf/platform/attribute/abstract.rb, line 47 def db_name name end
display_type()
click to toggle source
# File lib/bhf/platform/attribute/abstract.rb, line 26 def display_type @options_display_type || @name end
form_type()
click to toggle source
# File lib/bhf/platform/attribute/abstract.rb, line 22 def form_type @options_form_type || @name end
link()
click to toggle source
# File lib/bhf/platform/attribute/abstract.rb, line 38 def link return unless @link_platform_settings @link ||= Bhf::Platform::Base.new(@link_platform_settings) end
macro()
click to toggle source
# File lib/bhf/platform/attribute/abstract.rb, line 18 def macro :column end
reflection()
click to toggle source
# File lib/bhf/platform/attribute/abstract.rb, line 43 def reflection false end
reorderble()
click to toggle source
# File lib/bhf/platform/attribute/abstract.rb, line 51 def reorderble false end
show_type()
click to toggle source
# File lib/bhf/platform/attribute/abstract.rb, line 34 def show_type @options_show_type || display_type || @name end
type_ignore_emtpy?()
click to toggle source
# File lib/bhf/platform/attribute/abstract.rb, line 30 def type_ignore_emtpy? false end