Sha256: 819cda4d2cfcf1b60bcc203f6c2cf48d57a0df7aa8dfcbe1767da90550fc309f

Contents?: true

Size: 759 Bytes

Versions: 12

Compression:

Stored size: 759 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"] || snap_info["name"]
        @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

12 entries across 12 versions & 1 rubygems

Version Path
openstack-3.3.21 lib/openstack/volume/snapshot.rb
openstack-3.3.20 lib/openstack/volume/snapshot.rb
openstack-3.3.19 lib/openstack/volume/snapshot.rb
openstack-3.3.18 lib/openstack/volume/snapshot.rb
openstack-3.3.17 lib/openstack/volume/snapshot.rb
openstack-3.3.16 lib/openstack/volume/snapshot.rb
openstack-3.3.15 lib/openstack/volume/snapshot.rb
openstack-3.3.14 lib/openstack/volume/snapshot.rb
openstack-3.3.13 lib/openstack/volume/snapshot.rb
openstack-3.3.12 lib/openstack/volume/snapshot.rb
openstack-3.3.11 lib/openstack/volume/snapshot.rb
openstack-3.3.10 lib/openstack/volume/snapshot.rb