lib/svix/models/export_organization_out.rb in svix-0.45.0 vs lib/svix/models/export_organization_out.rb in svix-0.48.0

- old
+ new

@@ -12,11 +12,11 @@ require 'date' require 'time' module Svix - class ExportOrganizationOut + class ExportEnvironmentOut attr_accessor :created_at attr_accessor :event_types attr_accessor :settings @@ -56,16 +56,16 @@ # 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 `Svix::ExportOrganizationOut` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Svix::ExportEnvironmentOut` 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 `Svix::ExportOrganizationOut`. 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 `Svix::ExportEnvironmentOut`. 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?(:'created_at')