class MsRestAzure::Serialization::Serialization
Class to handle serialization & deserialization.
Public Instance Methods
get_model(model_name)
click to toggle source
Retrieves model of the model_name
@param model_name [String] Name of the model to retrieve.
# File lib/ms_rest_azure/serialization.rb, line 31 def get_model(model_name) begin Object.const_get(@context.class.to_s.split('::')[0...-1].join('::') + "::Models::#{model_name}") rescue NameError # Look into MsRestAzure namespace if model name not found in the ARM's models namespace Object.const_get("MsRestAzure::#{model_name}") end end