Class: Honyomi::Query
- Inherits:
-
Object
- Object
- Honyomi::Query
- Defined in:
- lib/honyomi/query.rb
Constant Summary collapse
- OPTIONS =
[ ['book' , 'b'], ['title' , 't'], ['page' , 'p'], ]
Instance Attribute Summary collapse
-
#bookmark_query ⇒ Object
readonly
Returns the value of attribute bookmark_query.
-
#jump_page_no ⇒ Object
readonly
Returns the value of attribute jump_page_no.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#page_query ⇒ Object
readonly
Returns the value of attribute page_query.
-
#src ⇒ Object
readonly
Returns the value of attribute src.
Instance Method Summary collapse
-
#initialize(src) ⇒ Query
constructor
A new instance of Query.
Constructor Details
#initialize(src) ⇒ Query
Returns a new instance of Query.
17 18 19 20 21 |
# File 'lib/honyomi/query.rb', line 17 def initialize(src) @src = src init_hash parse end |
Instance Attribute Details
#bookmark_query ⇒ Object (readonly)
Returns the value of attribute bookmark_query.
7 8 9 |
# File 'lib/honyomi/query.rb', line 7 def bookmark_query @bookmark_query end |
#jump_page_no ⇒ Object (readonly)
Returns the value of attribute jump_page_no.
8 9 10 |
# File 'lib/honyomi/query.rb', line 8 def jump_page_no @jump_page_no end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
9 10 11 |
# File 'lib/honyomi/query.rb', line 9 def key @key end |
#page_query ⇒ Object (readonly)
Returns the value of attribute page_query.
6 7 8 |
# File 'lib/honyomi/query.rb', line 6 def page_query @page_query end |
#src ⇒ Object (readonly)
Returns the value of attribute src.
5 6 7 |
# File 'lib/honyomi/query.rb', line 5 def src @src end |