Class: Evertils::Grammar
- Inherits:
-
Object
- Object
- Evertils::Grammar
- Defined in:
- lib/evertils/grammar.rb
Instance Attribute Summary collapse
-
#created ⇒ Object
Returns the value of attribute created.
-
#intitle ⇒ Object
Returns the value of attribute intitle.
-
#notebook ⇒ Object
Returns the value of attribute notebook.
-
#tags ⇒ Object
Returns the value of attribute tags.
Instance Method Summary collapse
-
#initialize ⇒ Grammar
constructor
Available grammars dev.evernote.com/doc/articles/search_grammar.php.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ Grammar
Available grammars dev.evernote.com/doc/articles/search_grammar.php
10 11 12 13 14 15 16 |
# File 'lib/evertils/grammar.rb', line 10 def initialize = [] @grammar = [] @notebook = nil @intitle = nil @created = Date.today.strftime('%Y%m%d') end |
Instance Attribute Details
#created ⇒ Object
Returns the value of attribute created.
5 6 7 |
# File 'lib/evertils/grammar.rb', line 5 def created @created end |
#intitle ⇒ Object
Returns the value of attribute intitle.
5 6 7 |
# File 'lib/evertils/grammar.rb', line 5 def intitle @intitle end |
#notebook ⇒ Object
Returns the value of attribute notebook.
5 6 7 |
# File 'lib/evertils/grammar.rb', line 5 def notebook @notebook end |
#tags ⇒ Object
Returns the value of attribute tags.
5 6 7 |
# File 'lib/evertils/grammar.rb', line 5 def end |
Instance Method Details
#to_s ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/evertils/grammar.rb', line 20 def to_s @grammar = [] stringify_properties unless .empty? @grammar.join(' ') end |