Class: Nis::Struct::Error

Inherits:
Object
  • Object
show all
Includes:
Util::Assignable
Defined in:
lib/nis/struct/error.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Util::Assignable

#[], #initialize, #to_hash, #to_json

Instance Attribute Details

#errorString

Returns the current value of error.

Returns:

  • (String)

    the current value of error



7
8
9
# File 'lib/nis/struct/error.rb', line 7

def error
  @error
end

#messageString

Returns the current value of message.

Returns:

  • (String)

    the current value of message



7
8
9
# File 'lib/nis/struct/error.rb', line 7

def message
  @message
end

#statusInteger

Returns the current value of status.

Returns:

  • (Integer)

    the current value of status



7
8
9
# File 'lib/nis/struct/error.rb', line 7

def status
  @status
end

#timeStampInteger Also known as: timestamp

Returns the current value of timeStamp.

Returns:

  • (Integer)

    the current value of timeStamp



7
8
9
# File 'lib/nis/struct/error.rb', line 7

def timeStamp
  @timeStamp
end

Class Method Details

.build(attrs) ⇒ Object



14
15
16
# File 'lib/nis/struct/error.rb', line 14

def self.build(attrs)
  new(attrs)
end