Class: Mexico::FileSystem::URL
- Inherits:
-
Object
- Object
- Mexico::FileSystem::URL
- Extended by:
- IdRef, StaticCollectionRef
- Includes:
- BoundToCorpus, Poseidon, ROXML
- Defined in:
- lib/mexico/file_system/url.rb
Overview
An URL object stands for a resource representation at the given location.
Instance Attribute Summary
Attributes included from BoundToCorpus
Instance Method Summary collapse
-
#get(opts = {}) ⇒ String or ByteArray
Attempts to fetch the contents at this resource.
-
#info ⇒ Hash
Retrieves a bunch of meta data with information about this resource representation.
-
#initialize(opts = {}) ⇒ URL
constructor
A new instance of URL.
Methods included from IdRef
Methods included from StaticCollectionRef
Methods included from BoundToCorpus
Constructor Details
#initialize(opts = {}) ⇒ URL
Returns a new instance of URL.
45 46 47 48 49 50 |
# File 'lib/mexico/file_system/url.rb', line 45 def initialize(opts={}) # @corpus = corpus [:identifier,:name,:description].each do |att| send("#{att}=", opts[att]) if opts.has_key?(att) end end |
Instance Method Details
#get(opts = {}) ⇒ String or ByteArray
Attempts to fetch the contents at this resource.
61 62 63 |
# File 'lib/mexico/file_system/url.rb', line 61 def get(opts = {} ) # @todo Implement this method stub end |
#info ⇒ Hash
Retrieves a bunch of meta data with information about this resource representation.
54 55 56 |
# File 'lib/mexico/file_system/url.rb', line 54 def info # @todo Implement this method stub end |