OpenShift::Endpoint::Mapping

Attributes

backend[RW]
frontend[RW]
options[RW]

Public Instance Methods

from_descriptor(spec_hash={}) click to toggle source
# 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
to_descriptor() click to toggle source
# 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.