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-1.0.0 lib/cfoundry/v2/route.rb
cfoundry-0.7.0.rc15 lib/cfoundry/v2/route.rb
cfoundry-0.7.0.rc14 lib/cfoundry/v2/route.rb
cfoundry-0.7.0.rc13 lib/cfoundry/v2/route.rb
cfoundry-0.7.0.rc12 lib/cfoundry/v2/route.rb
cfoundry-0.7.0.rc11 lib/cfoundry/v2/route.rb
cfoundry-0.7.0.rc10 lib/cfoundry/v2/route.rb
cfoundry-0.7.0.rc9 lib/cfoundry/v2/route.rb
cfoundry-0.7.0.rc8 lib/cfoundry/v2/route.rb
cfoundry-0.7.0.rc6 lib/cfoundry/v2/route.rb
cfoundry-0.7.0.rc5 lib/cfoundry/v2/route.rb
cfoundry-0.7.0.rc4 lib/cfoundry/v2/route.rb
cfoundry-0.7.0.rc3 lib/cfoundry/v2/route.rb
cfoundry-0.7.0.rc2 lib/cfoundry/v2/route.rb
cfoundry-0.7.0.rc1 lib/cfoundry/v2/route.rb
cfoundry-0.6.1.rc4 lib/cfoundry/v2/route.rb
cfoundry-0.5.3.rc7 lib/cfoundry/v2/route.rb
static-1.0.1 vendor/cfoundry-0.5.2/lib/cfoundry/v2/route.rb
cfoundry-0.6.1.rc3 lib/cfoundry/v2/route.rb
cfoundry-0.6.1.rc2 lib/cfoundry/v2/route.rb