Module: Kudzu::Model::Link

Included in:
Adapter::Memory::Link, Agent::Reference
Defined in:
lib/kudzu/model/link.rb

Instance Method Summary collapse

Instance Method Details

#status_redirection?Boolean

Returns:

  • (Boolean)

12
13
14
# File 'lib/kudzu/model/link.rb', line 12

def status_redirection?
  300 <= status && status <= 399
end

#status_success?Boolean

Returns:

  • (Boolean)

8
9
10
# File 'lib/kudzu/model/link.rb', line 8

def status_success?
  200 <= status && status <= 299
end

#uriObject


4
5
6
# File 'lib/kudzu/model/link.rb', line 4

def uri
  Addressable::URI.parse(url)
end