Class: GetAuditLogsResponseTrailsItemDataActor
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetAuditLogsResponseTrailsItemDataActor
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 |
# File 'lib/schemas.rb', line 6904 def self.from_dynamic!(d) d = Types::Hash[d] new( active: d["active"], email: d["email"], id: d["id"], get_audit_logs_response_trails_item_data_actor_name: d["name"], username: d["username"], ) end |
.from_json!(json) ⇒ Object
6915 6916 6917 |
# File 'lib/schemas.rb', line 6915 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
6919 6920 6921 6922 6923 6924 6925 6926 6927 |
# File 'lib/schemas.rb', line 6919 def to_dynamic { "active" => active, "email" => email, "id" => id, "name" => get_audit_logs_response_trails_item_data_actor_name, "username" => username, } end |
#to_json(options = nil) ⇒ Object
6929 6930 6931 |
# File 'lib/schemas.rb', line 6929 def to_json( = nil) JSON.generate(to_dynamic, ) end |