lib/eilam_test/models/user.rb in eilam_test-1.1.14 vs lib/eilam_test/models/user.rb in eilam_test-1.1.15

- old
+ new

@@ -11,11 +11,11 @@ =end require 'date' require 'time' -module EilamTest +module AutosdeOpenapiClient # User class User # date_joined attr_accessor :date_joined @@ -96,17 +96,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::User` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::User` 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::User`. 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::User`. 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?(:'date_joined') @@ -337,10 +337,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