Module: Musashi::Retriever::Base

Includes:
Connection
Included in:
VisitorStrategist
Defined in:
lib/musashi/retriever.rb

Instance Attribute Summary

Attributes included from Connection

#endpoint, #format

Instance Method Summary collapse

Methods included from Connection

#accept, #connection, #options

Instance Method Details

#retrieve(header = {}) ⇒ Object



11
12
13
14
15
# File 'lib/musashi/retriever.rb', line 11

def retrieve(header={})
  response = connection.get(connection.path_prefix, header)
  @retrieved = true
  response.body.extend(VisitorStrategist)
end

#retrieved?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/musashi/retriever.rb', line 7

def retrieved?
  @retrieved ||= false
end