Class: Trax::Model::Attributes::Value
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Trax::Model::Attributes::Value
show all
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/trax/model/attributes/value.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(val) ⇒ Value
Returns a new instance of Value.
7
8
9
|
# File 'lib/trax/model/attributes/value.rb', line 7
def initialize(val)
@value = val
end
|
Class Method Details
.symbolic_name ⇒ Object
15
16
17
|
# File 'lib/trax/model/attributes/value.rb', line 15
def self.symbolic_name
name.demodulize.underscore.to_sym
end
|
.to_sym ⇒ Object
19
20
21
|
# File 'lib/trax/model/attributes/value.rb', line 19
def self.to_sym
:value
end
|
Instance Method Details
#__getobj__ ⇒ Object
11
12
13
|
# File 'lib/trax/model/attributes/value.rb', line 11
def __getobj__
@value
end
|