Class: OsCtl::Lib::IdMap::Entry
- Inherits:
-
Struct
- Object
- Struct
- OsCtl::Lib::IdMap::Entry
- Defined in:
- lib/libosctl/id_map.rb
Instance Attribute Summary collapse
-
#host_id ⇒ Object
Returns the value of attribute host_id.
-
#id_count ⇒ Object
Returns the value of attribute id_count.
-
#ns_id ⇒ Object
Returns the value of attribute ns_id.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#host_id ⇒ Object
Returns the value of attribute host_id
4 5 6 |
# File 'lib/libosctl/id_map.rb', line 4 def host_id @host_id end |
#id_count ⇒ Object
Returns the value of attribute id_count
4 5 6 |
# File 'lib/libosctl/id_map.rb', line 4 def id_count @id_count end |
#ns_id ⇒ Object
Returns the value of attribute ns_id
4 5 6 |
# File 'lib/libosctl/id_map.rb', line 4 def ns_id @ns_id end |
Class Method Details
Instance Method Details
#to_a ⇒ Object
14 15 16 |
# File 'lib/libosctl/id_map.rb', line 14 def to_a [ns_id, host_id, id_count] end |
#to_s ⇒ Object
18 19 20 |
# File 'lib/libosctl/id_map.rb', line 18 def to_s "#{ns_id}:#{host_id}:#{id_count}" end |