Sha256: 04482a5f3cb91244ee506834eb9da8be2088dfae1929894b0a93f5b51b58cb37

Contents?: true

Size: 213 Bytes

Versions: 6

Compression:

Stored size: 213 Bytes

Contents

require "cfoundry/v2/model"

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cfoundry-0.3.51 lib/cfoundry/v2/route.rb
cfoundry-0.3.50 lib/cfoundry/v2/route.rb
cfoundry-0.3.49 lib/cfoundry/v2/route.rb
cfoundry-0.3.48 lib/cfoundry/v2/route.rb
cfoundry-0.3.47 lib/cfoundry/v2/route.rb
cfoundry-0.3.46 lib/cfoundry/v2/route.rb