Module: RDFObject::StoreResponse
- Defined in:
- lib/rdf_objects/pho/store.rb
Instance Attribute Summary collapse
-
#collection ⇒ Object
Returns the value of attribute collection.
-
#resource ⇒ Object
Returns the value of attribute resource.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#collection ⇒ Object
Returns the value of attribute collection.
3 4 5 |
# File 'lib/rdf_objects/pho/store.rb', line 3 def collection @collection end |
#resource ⇒ Object
Returns the value of attribute resource.
3 4 5 |
# File 'lib/rdf_objects/pho/store.rb', line 3 def resource @resource end |
Class Method Details
.extended(o) ⇒ Object
8 9 10 |
# File 'lib/rdf_objects/pho/store.rb', line 8 def self.extended(o) o.parse_response end |
Instance Method Details
#parse_response ⇒ Object
4 5 6 |
# File 'lib/rdf_objects/pho/store.rb', line 4 def parse_response @collection = ::RDFObject::Parser.parse(body.content) unless body.content.empty? or status_code >= 300 end |