Class: OpenStack::Network::Router
- Defined in:
- lib/openstack/network/router.rb
Instance Attribute Summary collapse
-
#admin_state_up ⇒ Object
readonly
Returns the value of attribute admin_state_up.
-
#enable_snat ⇒ Object
readonly
Returns the value of attribute enable_snat.
-
#external_gateway_info ⇒ Object
readonly
Returns the value of attribute external_gateway_info.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#tenant_id ⇒ Object
readonly
Returns the value of attribute tenant_id.
Instance Method Summary collapse
-
#initialize(router_info = {}) ⇒ Router
constructor
A new instance of Router.
Constructor Details
#initialize(router_info = {}) ⇒ Router
Returns a new instance of Router.
14 15 16 17 18 19 20 21 22 |
# File 'lib/openstack/network/router.rb', line 14 def initialize(router_info={}) @name = router_info['name'] @status = router_info['status'] @external_gateway_info = router_info['external_gateway_info'] @admin_state_up = router_info['admin_state_up'] @tenant_id = router_info['tenant_id'] @id = router_info['id'] @enable_snat = router_info['enable_snat'] end |
Instance Attribute Details
#admin_state_up ⇒ Object (readonly)
Returns the value of attribute admin_state_up.
7 8 9 |
# File 'lib/openstack/network/router.rb', line 7 def admin_state_up @admin_state_up end |
#enable_snat ⇒ Object (readonly)
Returns the value of attribute enable_snat.
11 12 13 |
# File 'lib/openstack/network/router.rb', line 11 def enable_snat @enable_snat end |
#external_gateway_info ⇒ Object (readonly)
Returns the value of attribute external_gateway_info.
9 10 11 |
# File 'lib/openstack/network/router.rb', line 9 def external_gateway_info @external_gateway_info end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/openstack/network/router.rb', line 5 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/openstack/network/router.rb', line 6 def name @name end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
8 9 10 |
# File 'lib/openstack/network/router.rb', line 8 def status @status end |
#tenant_id ⇒ Object (readonly)
Returns the value of attribute tenant_id.
10 11 12 |
# File 'lib/openstack/network/router.rb', line 10 def tenant_id @tenant_id end |