Class: Nis::Unit::Type

Inherits:
Object
  • Object
show all
Defined in:
lib/nis/unit/type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Type

Returns a new instance of Type.



7
8
9
# File 'lib/nis/unit/type.rb', line 7

def initialize(value)
  @value = value
end

Instance Attribute Details

#messageString

Returns the current value of message.

Returns:

  • (String)

    the current value of message



4
5
6
# File 'lib/nis/unit/type.rb', line 4

def message
  @message
end

#valueString

Returns the current value of value.

Returns:

  • (String)

    the current value of value



4
5
6
# File 'lib/nis/unit/type.rb', line 4

def value
  @value
end

Instance Method Details

#==(other) ⇒ Object



19
20
21
# File 'lib/nis/unit/type.rb', line 19

def ==(other)
  @value == other.value
end

#to_sObject



15
16
17
# File 'lib/nis/unit/type.rb', line 15

def to_s
  @message
end