Skip to Content Skip to Search
Methods
A
N

Class Public methods

new(schema, data:)

# File activemodel/lib/active_model/schematized_json.rb, line 70
def initialize(schema, data:)
  @schema, @data = schema, data
  update_data_with_schema_defaults
end

Instance Public methods

assign_data_with_type_casting(new_data)

# File activemodel/lib/active_model/schematized_json.rb, line 75
def assign_data_with_type_casting(new_data)
  new_data.each { |k, v| public_send "#{k}=", v }
end