Class: Nvoi::External::Database::Types::Branch

Inherits:
Struct
  • Object
show all
Defined in:
lib/nvoi/external/database/types.rb

Overview

Branch represents a database branch (snapshot)

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#adapterObject

Returns the value of attribute adapter

Returns:

  • (Object)

    the current value of adapter



20
21
22
# File 'lib/nvoi/external/database/types.rb', line 20

def adapter
  @adapter
end

#created_atObject

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



20
21
22
# File 'lib/nvoi/external/database/types.rb', line 20

def created_at
  @created_at
end

#databaseObject

Returns the value of attribute database

Returns:

  • (Object)

    the current value of database



20
21
22
# File 'lib/nvoi/external/database/types.rb', line 20

def database
  @database
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



20
21
22
# File 'lib/nvoi/external/database/types.rb', line 20

def id
  @id
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



20
21
22
# File 'lib/nvoi/external/database/types.rb', line 20

def size
  @size
end

Instance Method Details

#to_hObject



21
22
23
# File 'lib/nvoi/external/database/types.rb', line 21

def to_h
  { id:, created_at:, size:, adapter:, database: }
end