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