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