Class: Storexplore::WalkerPage::Getter
- Inherits:
-
Object
- Object
- Storexplore::WalkerPage::Getter
- Defined in:
- lib/storexplore/walker_page.rb
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(agent, uri) ⇒ Getter
constructor
A new instance of Getter.
- #text ⇒ Object
Constructor Details
#initialize(agent, uri) ⇒ Getter
Returns a new instance of Getter.
100 101 102 103 |
# File 'lib/storexplore/walker_page.rb', line 100 def initialize(agent, uri) @agent = agent @uri = uri end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
98 99 100 |
# File 'lib/storexplore/walker_page.rb', line 98 def uri @uri end |
Instance Method Details
#get ⇒ Object
104 105 106 |
# File 'lib/storexplore/walker_page.rb', line 104 def get @page ||= get_page end |
#text ⇒ Object
108 109 110 |
# File 'lib/storexplore/walker_page.rb', line 108 def text @uri.to_s end |