module Google::Cloud::Storage::Convert
@private
Internal conversion of raw data values to/from Storage
values
Public Instance Methods
storage_class_for(str)
click to toggle source
@param [String,Symbol,Array<String,Symbol>] str
# File lib/google/cloud/storage/convert.rb, line 25 def storage_class_for str return nil if str.nil? return str.map { |s| storage_class_for s } if str.is_a? Array { "archive" => "ARCHIVE", "coldline" => "COLDLINE", "dra" => "DURABLE_REDUCED_AVAILABILITY", "durable" => "DURABLE_REDUCED_AVAILABILITY", "durable_reduced_availability" => "DURABLE_REDUCED_AVAILABILITY", "multi_regional" => "MULTI_REGIONAL", "nearline" => "NEARLINE", "regional" => "REGIONAL", "standard" => "STANDARD" }[str.to_s.downcase] || str.to_s end