client/lib/deltacloud/client/helpers/model_helper.rb
# Checks if current @connection support +model_name+
# and then convert HTTP response to a Ruby model
#
# - model_name -> A class name in underscore form
# - collection_body -> HTTP body of collection
#
Checks if current @connection support +model_name+
and then convert HTTP response to a Ruby model

> A class name in underscore form
collection_body -> HTTP body of collection
Checks if current @connection support + model_name + and then convert HTTP response to a Ruby model > A class name in underscore form collection_body - > HTTP body of collection
def from_collection(model_name, collection_body)
        must_support!(model_name)
        model(model_name.to_s.singularize).from_collection(
          self,
          collection_body
        )
      end
def from_collection ( model_name , collection_body ) must_support! ( model_name ) model ( model_name . to_s . singularize ) . from_collection ( self , collection_body ) end
Checks if current @connection support +model_name+
and then convert HTTP response to a Ruby model
Checks if current @connection support + model_name + and then convert HTTP response to a Ruby model
model_name
<not_specific>
collection_body
<not_specific>