Class: Net::Finger
- Inherits:
-
Text::Generic
- Object
- Text::Generic
- Net::Finger
- Defined in:
- lib/net/finger.rb
Overview
A Finger client API for Ruby.
Net::Finger provides a library which can be used to build Finger user-agents.
Net::Finger is designed to work closely with URI.
Simple Examples
All examples assume you have loaded Net::Finger with:
require 'net/finger'
This will also require ‘uri’ so you don’t need to require it separately.
The Net::Finger methods in the following section do not persist connections.
GET by URI
uri = URI('finger://skyjake.fi/jaakko')
Net::Finger.get(uri) # => String
Class Method Summary collapse
Methods inherited from Text::Generic
Class Method Details
.get(string_or_uri) ⇒ Object
32 33 34 35 |
# File 'lib/net/finger.rb', line 32 def self.get(string_or_uri) uri = build_uri string_or_uri, URI::Finger request uri, uri.name.to_s end |