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