Class: GetSecretTypesResponseMeta

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



16093
16094
16095
16096
16097
16098
# File 'lib/schemas.rb', line 16093

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

.from_json!(json) ⇒ Object



16100
16101
16102
# File 'lib/schemas.rb', line 16100

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

Instance Method Details

#to_dynamicObject



16104
16105
16106
16107
16108
# File 'lib/schemas.rb', line 16104

def to_dynamic
  {
    "total" => total,
  }
end

#to_json(options = nil) ⇒ Object



16110
16111
16112
# File 'lib/schemas.rb', line 16110

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