Class: Bosh::Template::Test::LinkInstance
- Inherits:
-
Object
- Object
- Bosh::Template::Test::LinkInstance
- Defined in:
- lib/bosh/template/test/link_instance.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#az ⇒ Object
readonly
Returns the value of attribute az.
-
#bootstrap ⇒ Object
readonly
Returns the value of attribute bootstrap.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name: 'i-name', id: 'jkl8098', index: 4, az: 'az4', address: 'link.instance.address.com', bootstrap: false) ⇒ LinkInstance
constructor
A new instance of LinkInstance.
- #to_h ⇒ Object
Constructor Details
#initialize(name: 'i-name', id: 'jkl8098', index: 4, az: 'az4', address: 'link.instance.address.com', bootstrap: false) ⇒ LinkInstance
Returns a new instance of LinkInstance.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/bosh/template/test/link_instance.rb', line 5 def initialize( name: 'i-name', id: 'jkl8098', index: 4, az: 'az4', address: 'link.instance.address.com', bootstrap: false) @bootstrap = bootstrap @address = address @az = az @index = index @id = id @name = name end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
3 4 5 |
# File 'lib/bosh/template/test/link_instance.rb', line 3 def address @address end |
#az ⇒ Object (readonly)
Returns the value of attribute az.
3 4 5 |
# File 'lib/bosh/template/test/link_instance.rb', line 3 def az @az end |
#bootstrap ⇒ Object (readonly)
Returns the value of attribute bootstrap.
3 4 5 |
# File 'lib/bosh/template/test/link_instance.rb', line 3 def bootstrap @bootstrap end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/bosh/template/test/link_instance.rb', line 3 def id @id end |
#index ⇒ Object (readonly)
Returns the value of attribute index.
3 4 5 |
# File 'lib/bosh/template/test/link_instance.rb', line 3 def index @index end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/bosh/template/test/link_instance.rb', line 3 def name @name end |
Instance Method Details
#to_h ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/bosh/template/test/link_instance.rb', line 20 def to_h { 'name' => name, 'id' => id, 'index' => index, 'az' => az, 'address' => address, 'bootstrap' => bootstrap } end |