Class: SiteSettings::LocalProcessProvider::Setting
- Inherits:
-
Object
- Object
- SiteSettings::LocalProcessProvider::Setting
- Defined in:
- lib/site_settings/local_process_provider.rb
Instance Attribute Summary collapse
-
#data_type ⇒ Object
Returns the value of attribute data_type.
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, data_type) ⇒ Setting
constructor
A new instance of Setting.
- #saved_change_to_value? ⇒ Boolean
- #value_changed? ⇒ Boolean
Constructor Details
#initialize(name, data_type) ⇒ Setting
Returns a new instance of Setting.
18 19 20 21 |
# File 'lib/site_settings/local_process_provider.rb', line 18 def initialize(name, data_type) self.name = name self.data_type = data_type end |
Instance Attribute Details
#data_type ⇒ Object
Returns the value of attribute data_type.
8 9 10 |
# File 'lib/site_settings/local_process_provider.rb', line 8 def data_type @data_type end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/site_settings/local_process_provider.rb', line 8 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
8 9 10 |
# File 'lib/site_settings/local_process_provider.rb', line 8 def value @value end |
Instance Method Details
#saved_change_to_value? ⇒ Boolean
14 15 16 |
# File 'lib/site_settings/local_process_provider.rb', line 14 def saved_change_to_value? true end |
#value_changed? ⇒ Boolean
10 11 12 |
# File 'lib/site_settings/local_process_provider.rb', line 10 def value_changed? false end |