Sha256: 0f3d4d067976aa2abb13f1162657e7df7c2313cdc7b61195489eec67846b3022

Contents?: true

Size: 206 Bytes

Versions: 10

Compression:

Stored size: 206 Bytes

Contents

require "cfoundry/v2/model"

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

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cfoundry-0.3.61 lib/cfoundry/v2/route.rb
cfoundry-0.3.60 lib/cfoundry/v2/route.rb
cfoundry-0.3.59 lib/cfoundry/v2/route.rb
cfoundry-0.3.58 lib/cfoundry/v2/route.rb
cfoundry-0.3.57 lib/cfoundry/v2/route.rb
cfoundry-0.3.56 lib/cfoundry/v2/route.rb
cfoundry-0.3.55 lib/cfoundry/v2/route.rb
cfoundry-0.3.54 lib/cfoundry/v2/route.rb
cfoundry-0.3.53 lib/cfoundry/v2/route.rb
cfoundry-0.3.52 lib/cfoundry/v2/route.rb