Class: Taksi::Values::Dynamic

Inherits:
Object
  • Object
show all
Defined in:
lib/taksi/values/dynamic.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#componentObject (readonly)

Returns the value of attribute component.



6
7
8
# File 'lib/taksi/values/dynamic.rb', line 6

def component
  @component
end

#nameObject (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_jsonObject



13
14
15
# File 'lib/taksi/values/dynamic.rb', line 13

def as_json
  nil
end

#dynamic?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/taksi/values/dynamic.rb', line 17

def dynamic?
  true
end

#static?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/taksi/values/dynamic.rb', line 21

def static?
  false
end