Sha256: 644a31d07120a05d9898bc9f33eb2cbac3817dde495a47e9113217ec27df8a53

Contents?: true

Size: 859 Bytes

Versions: 56

Compression:

Stored size: 859 Bytes

Contents

require "cfoundry/v1/model"

module CFoundry::V1
  class ServiceInstance < Model
    self.base_object_name = :service

    attribute :name,       :string,   :guid => true
    attribute :created,    :integer,  :at => [:meta, :created]
    attribute :updated,    :integer,  :at => [:meta, :updated]
    attribute :tags,       [:string], :at => [:meta, :tags]
    attribute :type,       :string
    attribute :vendor,     :string
    attribute :version,    :string
    attribute :tier,       :string
    attribute :properties, :hash

    define_client_methods

    alias_method :created_unix, :created
    alias_method :updated_unix, :updated

    # Timestamp of when the service was created.
    def created
      Time.at(created_unix)
    end

    # Timestamp of when the service was last updated.
    def updated
      Time.at(updated_unix)
    end
  end
end

Version data entries

56 entries across 56 versions & 3 rubygems

Version Path
cloulu-0.6.6 lib/cfoundry/v1/service_instance.rb
cloulu-0.6.5 lib/cfoundry/v1/service_instance.rb
cloulu-0.6.1 lib/cfoundry/v1/service_instance.rb
cloulu-0.6.0 lib/cfoundry/v1/service_instance.rb
cloulu-0.5.1 lib/cfoundry/v1/service_instance.rb
cloulu-0.5.0 lib/cfoundry/v1/service_instance.rb
cloulu-0.3.0 lib/cfoundry/v1/service_instance.rb
cloulu-0.2.6 lib/cfoundry/v1/service_instance.rb
cloulu-0.2.5 lib/cfoundry/v1/service_instance.rb
cloulu-0.2.4 lib/cfoundry/v1/service_instance.rb
cloulu-0.2.3 lib/cfoundry/v1/service_instance.rb
cloulu-0.2.1 lib/cfoundry/v1/service_instance.rb
cloulu-0.2.0 lib/cfoundry/v1/service_instance.rb
cloulu-0.1.6 lib/cfoundry/v1/service_instance.rb
cloulu-0.1.5 lib/cfoundry/v1/service_instance.rb
cloulu-0.1.2 lib/cfoundry/v1/service_instance.rb
cloulu-0.1.1 lib/cfoundry/v1/service_instance.rb
static-1.0.3 vendor/cfoundry-0.5.2/lib/cfoundry/v1/service_instance.rb
cfoundry-0.6.1.rc4 lib/cfoundry/v1/service_instance.rb
cfoundry-0.5.3.rc7 lib/cfoundry/v1/service_instance.rb