Class: Vayacondios::Document
- Inherits:
-
Hash
- Object
- Hash
- Vayacondios::Document
show all
- Defined in:
- lib/vayacondios/server/model/document.rb
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
#organization ⇒ Object
Returns the value of attribute organization.
2
3
4
|
# File 'lib/vayacondios/server/model/document.rb', line 2
def organization
@organization
end
|
#topic ⇒ Object
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
.create ⇒ Object
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
|
.find ⇒ Object
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
|
.update ⇒ Object
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
#destroy ⇒ Object
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
|