Module: RDFObject::StoreResponse

Defined in:
lib/rdf_objects/pho/store.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#collectionObject

Returns the value of attribute collection.



3
4
5
# File 'lib/rdf_objects/pho/store.rb', line 3

def collection
  @collection
end

#resourceObject

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_responseObject



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