Class: Capistrano::DataPlaneApi::Type

Inherits:
Shale::Mapper
  • Object
show all
Extended by:
T::Helpers
Includes:
Diggable, Equatable
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

: (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_hObject



20
# File 'lib/capistrano/data_plane_api/type.rb', line 20

def to_h = to_hash