Class: CFoundry::V1::ServiceInstance

Inherits:
Model
  • Object
show all
Defined in:
lib/cfoundry/v1/service_instance.rb

Instance Attribute Summary

Attributes inherited from Model

#changes, #guid

Attributes included from ModelMagic

#guid_name

Instance Method Summary collapse

Methods inherited from Model

#base_object_name, #changed?, #create!, #delete!, #eql?, #exists?, #find_path, #guid_name, #hash, #initialize, #inspect, #invalidate!, #manifest, #object_name, #put, #read_manifest, #update!, #write_manifest

Methods included from ModelMagic

#attribute, #define_client_methods, #read_locations, #write_locations

Constructor Details

This class inherits a constructor from CFoundry::V1::Model

Instance Method Details

#createdObject

Timestamp of when the service was created.



23
24
25
# File 'lib/cfoundry/v1/service_instance.rb', line 23

def created
  Time.at(created_unix)
end

#created_unixObject



19
# File 'lib/cfoundry/v1/service_instance.rb', line 19

alias_method :created_unix, :created

#updatedObject

Timestamp of when the service was last updated.



28
29
30
# File 'lib/cfoundry/v1/service_instance.rb', line 28

def updated
  Time.at(updated_unix)
end

#updated_unixObject



20
# File 'lib/cfoundry/v1/service_instance.rb', line 20

alias_method :updated_unix, :updated