Class: Entity

Inherits:
SimpleStruct show all
Defined in:
lib/bottlerocket/models/entity.rb

Instance Attribute Summary

Attributes inherited from SimpleStruct

#attributes

Instance Method Summary collapse

Methods inherited from SimpleStruct

#initialize, #method_missing

Constructor Details

This class inherits a constructor from SimpleStruct

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class SimpleStruct

Instance Method Details

#deleteObject



6
7
8
# File 'lib/bottlerocket/models/entity.rb', line 6

def delete
  content_type.delete(self.attributes)
end

#updateObject



2
3
4
# File 'lib/bottlerocket/models/entity.rb', line 2

def update
  content_type.update(self.attributes)
end