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.21 lib/cfoundry/v2/route.rb
cfoundry-0.5.0 lib/cfoundry/v2/route.rb
cfoundry-0.4.19 lib/cfoundry/v2/route.rb
cfoundry-0.4.18 lib/cfoundry/v2/route.rb
cfoundry-0.4.17 lib/cfoundry/v2/route.rb
cfoundry-0.4.16 lib/cfoundry/v2/route.rb
cfoundry-0.4.15 lib/cfoundry/v2/route.rb
cfoundry-0.4.14 lib/cfoundry/v2/route.rb
cfoundry-0.4.13 lib/cfoundry/v2/route.rb
cfoundry-0.4.12 lib/cfoundry/v2/route.rb
cfoundry-0.4.11 lib/cfoundry/v2/route.rb
cfoundry-0.4.10 lib/cfoundry/v2/route.rb
cfoundry-0.4.9 lib/cfoundry/v2/route.rb
cfoundry-0.4.8 lib/cfoundry/v2/route.rb
cfoundry-0.4.7 lib/cfoundry/v2/route.rb
cfoundry-0.4.6 lib/cfoundry/v2/route.rb
cfoundry-0.4.5 lib/cfoundry/v2/route.rb
cfoundry-0.4.4 lib/cfoundry/v2/route.rb
cfoundry-0.4.3 lib/cfoundry/v2/route.rb
cfoundry-0.4.2 lib/cfoundry/v2/route.rb