Class: Nis::Struct::KeyPairViewModel

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

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Util::Assignable

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

Instance Attribute Details

#addressNis::Unit::Address

Returns the current value of address.

Returns:



6
7
8
# File 'lib/nis/struct/key_pair_view_model.rb', line 6

def address
  @address
end

#privateKeyString Also known as: private_key

Returns the current value of privateKey.

Returns:

  • (String)

    the current value of privateKey



6
7
8
# File 'lib/nis/struct/key_pair_view_model.rb', line 6

def privateKey
  @privateKey
end

#publicKeyString Also known as: public_key

Returns the current value of publicKey.

Returns:

  • (String)

    the current value of publicKey



6
7
8
# File 'lib/nis/struct/key_pair_view_model.rb', line 6

def publicKey
  @publicKey
end

Class Method Details

.build(attrs) ⇒ Object



15
16
17
18
# File 'lib/nis/struct/key_pair_view_model.rb', line 15

def self.build(attrs)
  attrs[:address] = Nis::Unit::Address.new(attrs[:address])
  new(attrs)
end