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.6.1.rc1 lib/cfoundry/v2/route.rb
cfoundry-0.6.0 lib/cfoundry/v2/route.rb
cfoundry-0.6.0.rc6 lib/cfoundry/v2/route.rb
cfoundry-0.6.0.rc5 lib/cfoundry/v2/route.rb
cfoundry-0.5.3.rc6 lib/cfoundry/v2/route.rb
cfoundry-0.6.0.rc4 lib/cfoundry/v2/route.rb
cfoundry-0.6.0.rc3 lib/cfoundry/v2/route.rb
cfoundry-0.6.0.rc2 lib/cfoundry/v2/route.rb
cfoundry-0.6.0.rc1 lib/cfoundry/v2/route.rb
cfoundry-0.5.3.rc5 lib/cfoundry/v2/route.rb
cfoundry-0.5.3.rc4 lib/cfoundry/v2/route.rb
cfoundry-0.5.3.rc3 lib/cfoundry/v2/route.rb
cfoundry-0.5.3.rc2 lib/cfoundry/v2/route.rb
cfoundry-0.5.3.rc1 lib/cfoundry/v2/route.rb
cfoundry-0.5.2 lib/cfoundry/v2/route.rb
cfoundry-0.5.1.rc5 lib/cfoundry/v2/route.rb
cfoundry-0.5.1.rc4 lib/cfoundry/v2/route.rb
cfoundry-0.5.1.rc3 lib/cfoundry/v2/route.rb
cfoundry-0.5.1.rc2 lib/cfoundry/v2/route.rb
cfoundry-0.5.1.rc1 lib/cfoundry/v2/route.rb