Class: Taksi::Values::Static
- Inherits:
-
Object
- Object
- Taksi::Values::Static
- Defined in:
- lib/taksi/values/static.rb
Instance Attribute Summary collapse
-
#component ⇒ Object
readonly
Returns the value of attribute component.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #as_json ⇒ Object
- #dynamic? ⇒ Boolean
-
#initialize(component, name, value) ⇒ Static
constructor
A new instance of Static.
- #static? ⇒ Boolean
Constructor Details
#initialize(component, name, value) ⇒ Static
Returns a new instance of Static.
8 9 10 11 12 |
# File 'lib/taksi/values/static.rb', line 8 def initialize(component, name, value) @component = component @name = name @value = value end |
Instance Attribute Details
#component ⇒ Object (readonly)
Returns the value of attribute component.
6 7 8 |
# File 'lib/taksi/values/static.rb', line 6 def component @component end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/taksi/values/static.rb', line 6 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/taksi/values/static.rb', line 6 def value @value end |
Instance Method Details
#as_json ⇒ Object
14 15 16 |
# File 'lib/taksi/values/static.rb', line 14 def as_json value end |
#dynamic? ⇒ Boolean
18 19 20 |
# File 'lib/taksi/values/static.rb', line 18 def dynamic? false end |
#static? ⇒ Boolean
22 23 24 |
# File 'lib/taksi/values/static.rb', line 22 def static? true end |