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


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

def address
  @address
end

#privateKeyString Also known as: private_key


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

def privateKey
  @privateKey
end

#publicKeyString Also known as: public_key


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