Class: Fedora::Datastream
Instance Attribute Summary
Attributes inherited from BaseObject
#attributes, #blob, #errors, #new_object, #url
Instance Method Summary
collapse
Methods inherited from BaseObject
#new_object?
Constructor Details
#initialize(attrs = nil) ⇒ Datastream
Returns a new instance of Datastream.
4
5
6
7
|
# File 'lib/fedora/datastream.rb', line 4
def initialize(attrs = nil)
super
end
|
Instance Method Details
#dsid ⇒ Object
13
14
15
|
# File 'lib/fedora/datastream.rb', line 13
def dsid
attributes[:dsID]
end
|
#pid ⇒ Object
9
10
11
|
# File 'lib/fedora/datastream.rb', line 9
def pid
attributes[:pid]
end
|
#uri ⇒ Object
18
19
20
|
# File 'lib/fedora/datastream.rb', line 18
def uri
"fedora:info/#{pid}/datastreams/#{dsid}"
end
|