Class: Kybus::Storage::Datasource::EmptyModel

Inherits:
Model
  • Object
show all
Defined in:
lib/kybus/storage/datasource/model.rb

Overview

This class is for explicit usage of models without validations

Instance Attribute Summary

Attributes inherited from Model

#data, #repository

Instance Method Summary collapse

Methods inherited from Model

#[], #[]=, #create, #initialize, #store, #to_json

Constructor Details

This class inherits a constructor from Kybus::Storage::Datasource::Model

Instance Method Details

#run_validations!Object



51
# File 'lib/kybus/storage/datasource/model.rb', line 51

def run_validations!; end

#to_hObject



53
54
55
# File 'lib/kybus/storage/datasource/model.rb', line 53

def to_h
  @data
end