Sha256: a9de591025aa3045c85fa0134f5cac87a7429f4e4b992b116a09d04e66fc1ce3

Contents?: true

Size: 244 Bytes

Versions: 82

Compression:

Stored size: 244 Bytes

Contents

require "cfoundry/v2/model"

module CFoundry::V2
  class Route < Model
    attribute :host, :string
    to_one    :domain
    to_one    :space

    queryable_by :host, :domain_guid

    def name
      "#{host}.#{domain.name}"
    end
  end
end

Version data entries

82 entries across 82 versions & 3 rubygems

Version Path
cfoundry-0.4.1 lib/cfoundry/v2/route.rb
cfoundry-0.4.0 lib/cfoundry/v2/route.rb