Class: Nvoi::External::Database::Types::Branch
- Inherits:
-
Struct
- Object
- Struct
- Nvoi::External::Database::Types::Branch
- Defined in:
- lib/nvoi/external/database/types.rb
Overview
Branch represents a database branch (snapshot)
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#database ⇒ Object
Returns the value of attribute database.
-
#id ⇒ Object
Returns the value of attribute id.
-
#size ⇒ Object
Returns the value of attribute size.
Instance Method Summary collapse
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter
20 21 22 |
# File 'lib/nvoi/external/database/types.rb', line 20 def adapter @adapter end |
#created_at ⇒ Object
Returns the value of attribute created_at
20 21 22 |
# File 'lib/nvoi/external/database/types.rb', line 20 def created_at @created_at end |
#database ⇒ Object
Returns the value of attribute database
20 21 22 |
# File 'lib/nvoi/external/database/types.rb', line 20 def database @database end |
#id ⇒ Object
Returns the value of attribute id
20 21 22 |
# File 'lib/nvoi/external/database/types.rb', line 20 def id @id end |
#size ⇒ Object
Returns the value of attribute size
20 21 22 |
# File 'lib/nvoi/external/database/types.rb', line 20 def size @size end |
Instance Method Details
#to_h ⇒ Object
21 22 23 |
# File 'lib/nvoi/external/database/types.rb', line 21 def to_h { id:, created_at:, size:, adapter:, database: } end |