Class: Aptible::CLI::Formatter::Value

Inherits:
Node
  • Object
show all
Includes:
Comparable
Defined in:
lib/aptible/cli/formatter/value.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Value

Returns a new instance of Value.



9
10
11
# File 'lib/aptible/cli/formatter/value.rb', line 9

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



7
8
9
# File 'lib/aptible/cli/formatter/value.rb', line 7

def value
  @value
end

Instance Method Details

#<=>(other) ⇒ Object



13
14
15
# File 'lib/aptible/cli/formatter/value.rb', line 13

def <=>(other)
  value <=> other.value
end

#hashObject



19
20
21
# File 'lib/aptible/cli/formatter/value.rb', line 19

def hash
  value.hash
end