Sha256: f2bf86ddfe77dbdcc875f502b13441ba77cd9276d9eb345688d7ff9c4de37965

Contents?: true

Size: 652 Bytes

Versions: 28

Compression:

Stored size: 652 Bytes

Contents

module OpenStack
  module Network
    class Network
      attr_reader :id
      attr_reader :name
      attr_reader :admin_state_up
      attr_reader :status
      attr_reader :subnets
      attr_reader :shared
      attr_reader :external
      attr_reader :tenant_id

      def initialize(net_info = {})
        @id = net_info['id']
        @name = net_info['name']
        @admin_state_up = net_info['admin_state_up']
        @status = net_info['status']
        @subnets = net_info['subnets']
        @shared = net_info['shared']
        @external = net_info['router:external']
        @tenant_id = net_info['tenant_id']
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
openstack-3.3.21 lib/openstack/network/network.rb
openstack-3.3.20 lib/openstack/network/network.rb
openstack-3.3.19 lib/openstack/network/network.rb
openstack-3.3.18 lib/openstack/network/network.rb
openstack-3.3.17 lib/openstack/network/network.rb
openstack-3.3.16 lib/openstack/network/network.rb
openstack-3.3.15 lib/openstack/network/network.rb
openstack-3.3.14 lib/openstack/network/network.rb
openstack-3.3.13 lib/openstack/network/network.rb
openstack-3.3.12 lib/openstack/network/network.rb
openstack-3.3.11 lib/openstack/network/network.rb
openstack-3.3.10 lib/openstack/network/network.rb
openstack-3.3.9 lib/openstack/network/network.rb
openstack-3.3.8 lib/openstack/network/network.rb
openstack-3.3.7 lib/openstack/network/network.rb
openstack-3.3.6 lib/openstack/network/network.rb
openstack-3.3.5 lib/openstack/network/network.rb
openstack-3.3.4 lib/openstack/network/network.rb
openstack-3.3.3 lib/openstack/network/network.rb
openstack-3.3.2 lib/openstack/network/network.rb