Class: OpenStack::Network::Router

Inherits:
Object
  • Object
show all
Defined in:
lib/openstack/network/router.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_upObject (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_snatObject (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_infoObject (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

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/openstack/network/router.rb', line 5

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/openstack/network/router.rb', line 6

def name
  @name
end

#statusObject (readonly)

Returns the value of attribute status.



8
9
10
# File 'lib/openstack/network/router.rb', line 8

def status
  @status
end

#tenant_idObject (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