Module: Musashi::Retriever::Content
- Includes:
- DelegateHash
- Defined in:
- lib/musashi/retriever.rb
Instance Attribute Summary
Attributes included from Connection
Class Method Summary collapse
Instance Method Summary collapse
Methods included from DelegateHash
#[], #attrs, #fetch, #key?, #keys, #method_missing
Methods included from VisitorStrategist
#[], #has_key?, #method_missing, #respond_to?
Methods included from Strategist
define, #define, define_by_behavior, define_by_name, retrievers_by_behavior, retrievers_by_behavior=, retrievers_by_name, retrievers_by_name=
Methods included from Base
Methods included from Connection
#accept, #connection, #options
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Musashi::Retriever::DelegateHash
Class Method Details
.extend?(receiver) ⇒ Boolean
157 158 159 160 |
# File 'lib/musashi/retriever.rb', line 157 def self.extend?(receiver) !receiver.nil? && receiver.respond_to?(:start_with?) && \ receiver.start_with?('http') && !receiver.is_a?(Content) end |
Instance Method Details
#retrieve ⇒ Object
168 169 170 171 |
# File 'lib/musashi/retriever.rb', line 168 def retrieve self.endpoint = to_s super end |