Class: Capistrano::DataPlaneApi::Type
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- Capistrano::DataPlaneApi::Type
show all
- Extended by:
- T::Helpers
- Includes:
- Diggable, Equatable, Shale::Builder
- 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
Instance Method Summary
collapse
Methods included from Equatable
#eql?
Methods included from Diggable
#dig
Instance Method Details
#[](key) ⇒ Object
25
26
27
|
# File 'lib/capistrano/data_plane_api/type.rb', line 25
def [](key)
public_send(key) if respond_to?(key)
end
|
#[]=(key, val) ⇒ Object
30
31
32
|
# File 'lib/capistrano/data_plane_api/type.rb', line 30
def []=(key, val)
public_send(:"#{key}=", val)
end
|
#to_h ⇒ Object
22
|
# File 'lib/capistrano/data_plane_api/type.rb', line 22
def to_h = to_hash
|