Method: MetatronClient::ManifestationAttributes#initialize

Defined in:
lib/metatron_ruby_client/models/manifestation_attributes.rb

#initialize(attributes = {}) ⇒ ManifestationAttributes

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/metatron_ruby_client/models/manifestation_attributes.rb', line 45

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}

  if attributes.has_key?(:'format')
    self.format = attributes[:'format']
  end

  if attributes.has_key?(:'identifiers')
    self.identifiers = attributes[:'identifiers']
  end

  if attributes.has_key?(:'place_of_publication')
    self.place_of_publication = attributes[:'place_of_publication']
  end

  if attributes.has_key?(:'publishing_status')
    self.publishing_status = attributes[:'publishing_status']
  end

end