Class: Capistrano::DataPlaneApi::Type
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- Capistrano::DataPlaneApi::Type
- Extended by:
- T::Helpers
- Defined in:
- lib/capistrano/data_plane_api/type.rb
Overview
A Base class for all types of the Data Plane API request and response bodies
Direct Known Subclasses
Configuration, Configuration::Backend, Configuration::Server
Instance Method Summary collapse
-
#[](key) ⇒ Object
: (Symbol | String) -> Object?.
-
#[]=(key, val) ⇒ Object
: (Symbol | String, Object) -> void.
- #to_h ⇒ Object
Methods included from Equatable
Methods included from Diggable
Instance Method Details
#[](key) ⇒ Object
: (Symbol | String) -> Object?
23 24 25 |
# File 'lib/capistrano/data_plane_api/type.rb', line 23 def [](key) public_send(key) if respond_to?(key) end |
#[]=(key, val) ⇒ Object
: (Symbol | String, Object) -> void
28 29 30 |
# File 'lib/capistrano/data_plane_api/type.rb', line 28 def []=(key, val) public_send(:"#{key}=", val) end |
#to_h ⇒ Object
20 |
# File 'lib/capistrano/data_plane_api/type.rb', line 20 def to_h = to_hash |