Class: Vayacondios::Document

Inherits:
Hash
  • Object
show all
Defined in:
lib/vayacondios/server/model/document.rb

Direct Known Subclasses

ConfigDocument, EventDocument, ItemsetDocument

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Document

Returns a new instance of Document.



4
5
6
7
8
# File 'lib/vayacondios/server/model/document.rb', line 4

def initialize(options = {})
  options = options.symbolize_keys
  @organization = options[:organization]
  @topic = options[:topic]
end

Instance Attribute Details

#organizationObject

Returns the value of attribute organization.



2
3
4
# File 'lib/vayacondios/server/model/document.rb', line 2

def organization
  @organization
end

#topicObject

Returns the value of attribute topic.



2
3
4
# File 'lib/vayacondios/server/model/document.rb', line 2

def topic
  @topic
end

Class Method Details

.createObject

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/vayacondios/server/model/document.rb', line 10

def self.create
  raise NotImplementedError.new("#{self.name} must be overriden by a subclass.")
end

.findObject

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/vayacondios/server/model/document.rb', line 18

def self.find
  raise NotImplementedError.new("#{self.name} must be overriden by a subclass.")
end

.updateObject

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/vayacondios/server/model/document.rb', line 14

def self.update
  raise NotImplementedError.new("#{self.name} must be overriden by a subclass.")
end

Instance Method Details

#destroyObject

Raises:

  • (NotImplementedError)


22
23
24
# File 'lib/vayacondios/server/model/document.rb', line 22

def destroy
  raise NotImplementedError.new("#{self.name} must be overriden by a subclass.")
end