Class: Ldp::Resource::BinarySource
- Inherits:
-
Ldp::Resource
- Object
- Ldp::Resource
- Ldp::Resource::BinarySource
- Defined in:
- lib/ldp/resource/binary_source.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
Attributes inherited from Ldp::Resource
Instance Method Summary collapse
- #described_by ⇒ Object
-
#initialize(client, subject, content_or_response = nil, base_path = '') ⇒ BinarySource
constructor
A new instance of BinarySource.
Methods inherited from Ldp::Resource
#create, #current?, #delete, #get, #head, #new?, #reload, #retrieved_content?, #save, #subject_uri, #update, #update_cached_get
Constructor Details
#initialize(client, subject, content_or_response = nil, base_path = '') ⇒ BinarySource
Returns a new instance of BinarySource.
5 6 7 8 9 10 11 12 13 |
# File 'lib/ldp/resource/binary_source.rb', line 5 def initialize client, subject, content_or_response = nil, base_path = '' super case content_or_response when Faraday::Response else @content = content_or_response end end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
3 4 5 |
# File 'lib/ldp/resource/binary_source.rb', line 3 def content @content end |