Sha256: c8a8ce06fb99f8005bc5ad5902505fc471e76dee24326fce5e40dac3fe903c4d

Contents?: true

Size: 738 Bytes

Versions: 22

Compression:

Stored size: 738 Bytes

Contents

module OpenStack
  module Volume
    class Snapshot

      attr_reader :id
      attr_reader :display_name
      attr_reader :display_description
      attr_reader :volume_id
      attr_reader :status
      attr_reader :size
      attr_reader :created_at

      def initialize(snap_info)
        @id = snap_info["id"]
        @display_name = snap_info["display_name"] || snap_info["displayName"]
        @display_description = snap_info["display_description"] || snap_info["displayDescription"]
        @volume_id = snap_info["volume_id"] || snap_info["volumeId"]
        @status = snap_info["status"]
        @size  = snap_info["size"]
        @created_at = snap_info["created_at"] || snap_info["createdAt"]
      end

    end
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
openstack-3.3.9 lib/openstack/volume/snapshot.rb
openstack-3.3.8 lib/openstack/volume/snapshot.rb
openstack-3.3.7 lib/openstack/volume/snapshot.rb
openstack-3.3.6 lib/openstack/volume/snapshot.rb
openstack-3.3.5 lib/openstack/volume/snapshot.rb
openstack-3.3.4 lib/openstack/volume/snapshot.rb
openstack-3.3.3 lib/openstack/volume/snapshot.rb
openstack-3.3.2 lib/openstack/volume/snapshot.rb
openstack-3.3.1 lib/openstack/volume/snapshot.rb
openstack-3.3.0 lib/openstack/volume/snapshot.rb
openstack-3.2.0 lib/openstack/volume/snapshot.rb
openstack-3.1.1 lib/openstack/volume/snapshot.rb
openstack-3.1.0 lib/openstack/volume/snapshot.rb
openstack-3.0.0 lib/openstack/volume/snapshot.rb
openstack-2.2.0 lib/openstack/volume/snapshot.rb
openstack-2.0.2 lib/openstack/volume/snapshot.rb
openstack-1.1.2 lib/openstack/volume/snapshot.rb
openstack-1.1.1 lib/openstack/volume/snapshot.rb
openstack-1.1.0 lib/openstack/volume/snapshot.rb
openstack-1.0.9 lib/openstack/volume/snapshot.rb