Class: Taksi::Values::Static

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#componentObject (readonly)

Returns the value of attribute component.



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

def component
  @component
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

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



14
15
16
# File 'lib/taksi/values/static.rb', line 14

def as_json
  value
end

#dynamic?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/taksi/values/static.rb', line 18

def dynamic?
  false
end

#static?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/taksi/values/static.rb', line 22

def static?
  true
end