Class: Remember

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/schemas.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_dynamic!(d) ⇒ Object



1383
1384
1385
1386
1387
# File 'lib/schemas.rb', line 1383

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
  )
end

.from_json!(json) ⇒ Object



1389
1390
1391
# File 'lib/schemas.rb', line 1389

def self.from_json!(json)
  from_dynamic!(JSON.parse(json))
end

Instance Method Details

#to_dynamicObject



1393
1394
1395
1396
# File 'lib/schemas.rb', line 1393

def to_dynamic
  {
  }
end

#to_json(options = nil) ⇒ Object



1398
1399
1400
# File 'lib/schemas.rb', line 1398

def to_json(options = nil)
  JSON.generate(to_dynamic, options)
end