lib/eilam_test/models/volume.rb in eilam_test-1.1.14 vs lib/eilam_test/models/volume.rb in eilam_test-1.1.15
- old
+ new
@@ -11,11 +11,11 @@
=end
require 'date'
require 'time'
-module EilamTest
+module AutosdeOpenapiClient
# Define volume properties on a specific storage resource.
class Volume
# compliant
attr_accessor :compliant
@@ -110,17 +110,17 @@
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
def initialize(attributes = {})
if (!attributes.is_a?(Hash))
- fail ArgumentError, "The input argument (attributes) must be a hash in `EilamTest::Volume` initialize method"
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::Volume` initialize method"
end
# check to see if the attribute exists and convert string to symbol for hash key
attributes = attributes.each_with_object({}) { |(k, v), h|
if (!self.class.attribute_map.key?(k.to_sym))
- fail ArgumentError, "`#{k}` is not a valid attribute in `EilamTest::Volume`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::Volume`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
end
h[k.to_sym] = v
}
if attributes.key?(:'compliant')
@@ -290,10 +290,10 @@
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
end
end
else # model
# models (e.g. Pet) or oneOf
- klass = EilamTest.const_get(type)
+ klass = AutosdeOpenapiClient.const_get(type)
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
end
# Returns the string representation of the object