Class: SyncRequest
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- SyncRequest
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
1346 1347 1348 1349 1350 1351 |
# File 'lib/schemas.rb', line 1346 def self.from_dynamic!(d) d = Types::Hash[d] new( exclude_subdomains: d["excludeSubdomains"], ) end |
.from_json!(json) ⇒ Object
1353 1354 1355 |
# File 'lib/schemas.rb', line 1353 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
1357 1358 1359 1360 1361 |
# File 'lib/schemas.rb', line 1357 def to_dynamic { "excludeSubdomains" => exclude_subdomains, } end |
#to_json(options = nil) ⇒ Object
1363 1364 1365 |
# File 'lib/schemas.rb', line 1363 def to_json( = nil) JSON.generate(to_dynamic, ) end |