Class: Storexplore::WalkerPage::Getter

Inherits:
Object
  • Object
show all
Defined in:
lib/storexplore/walker_page.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#uriObject (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

#getObject



104
105
106
# File 'lib/storexplore/walker_page.rb', line 104

def get
  @page ||= get_page
end

#textObject



108
109
110
# File 'lib/storexplore/walker_page.rb', line 108

def text
  @uri.to_s
end