Method: MetatronClient::Resource#valid?
- Defined in:
- lib/metatron_ruby_client/models/resource.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/metatron_ruby_client/models/resource.rb', line 98 def valid? if @id.nil? return false end if @type.nil? return false end allowed_values = ["agents", "assets", "works", "manifestations"] if @type && !allowed_values.include?(@type) return false end end |