Class: Honyomi::Query

Inherits:
Object
  • Object
show all
Defined in:
lib/honyomi/query.rb

Constant Summary collapse

OPTIONS =
[
 ['book'  , 'b'],
 ['title' , 't'],
 ['page'  , 'p'],
]

Instance Attribute Summary collapse

Instance Method Summary collapse

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_queryObject (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_noObject (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

#keyObject (readonly)

Returns the value of attribute key.



9
10
11
# File 'lib/honyomi/query.rb', line 9

def key
  @key
end

#page_queryObject (readonly)

Returns the value of attribute page_query.



6
7
8
# File 'lib/honyomi/query.rb', line 6

def page_query
  @page_query
end

#srcObject (readonly)

Returns the value of attribute src.



5
6
7
# File 'lib/honyomi/query.rb', line 5

def src
  @src
end