Class: GetNetworkPrivateResponseElementsItem
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetNetworkPrivateResponseElementsItem
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 |
# File 'lib/schemas.rb', line 13729 def self.from_dynamic!(d) d = Types::Hash[d] new( added_at: d["addedAt"], added_by: d["addedBy"], created_at: d["createdAt"], created_by: d["createdBy"], description: d["description"], href: d["href"], id: d["id"], get_network_private_response_elements_item_name: d["name"], parent_folder_id: d["parentFolderId"], summary: d["summary"], get_network_private_response_elements_item_type: d["type"], updated_at: d["updatedAt"], updated_by: d["updatedBy"], ) end |
.from_json!(json) ⇒ Object
13748 13749 13750 |
# File 'lib/schemas.rb', line 13748 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 |
# File 'lib/schemas.rb', line 13752 def to_dynamic { "addedAt" => added_at, "addedBy" => added_by, "createdAt" => created_at, "createdBy" => created_by, "description" => description, "href" => href, "id" => id, "name" => get_network_private_response_elements_item_name, "parentFolderId" => parent_folder_id, "summary" => summary, "type" => get_network_private_response_elements_item_type, "updatedAt" => updated_at, "updatedBy" => updated_by, } end |
#to_json(options = nil) ⇒ Object
13770 13771 13772 |
# File 'lib/schemas.rb', line 13770 def to_json( = nil) JSON.generate(to_dynamic, ) end |