Class: Atlasq::Command::Base
- Inherits:
-
Object
- Object
- Atlasq::Command::Base
show all
- Defined in:
- lib/atlasq/command/base.rb
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(search_terms) ⇒ Base
Returns a new instance of Base.
20
21
22
|
# File 'lib/atlasq/command/base.rb', line 20
def initialize(search_terms)
@search_terms = search_terms.map(&Util::String.method(:normalize))
end
|
Instance Attribute Details
#search_terms ⇒ Object
Returns the value of attribute search_terms.
6
7
8
|
# File 'lib/atlasq/command/base.rb', line 6
def search_terms
@search_terms
end
|
Class Method Details
.run(terms) ⇒ String
10
11
12
|
# File 'lib/atlasq/command/base.rb', line 10
def self.run(terms)
new(terms).content
end
|
15
16
17
|
# File 'lib/atlasq/command/base.rb', line 15
def self.
true
end
|
Instance Method Details
#content ⇒ String
25
26
27
|
# File 'lib/atlasq/command/base.rb', line 25
def content
NotImplementedError
end
|