OpenShift::Model
# File lib/openshift-origin-common/models/endpoint.rb, line 7 def from_descriptor(spec_hash={}) self.frontend = spec_hash['Frontend'] self.backend = spec_hash['Backend'] self.options = spec_hash['Options'] self end
# File lib/openshift-origin-common/models/endpoint.rb, line 14 def to_descriptor h = {} h['Frontend'] = self.frontend if self.frontend h['Backend'] = self.backend if self.backend h['Options'] = self.options if self.options h end
[Validate]
Generated with the Darkfish Rdoc Generator 2.