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, inherited, #initialize, #inspect, #invalidate!, #manifest, #object_name, objects, plural_base_object_name, plural_object_name, #put, #read_manifest, #update!, #write_manifest

Methods included from ModelMagic

#attribute, #define_client_methods, #on_base_client, #on_client, #read_locations, #read_only_attributes, #write_locations

Constructor Details

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

Instance Method Details

#createdObject

Timestamp of when the service was created.



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

def created
  Time.at(created_unix)
end

#created_unixObject



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

alias_method :created_unix, :created

#updatedObject

Timestamp of when the service was last updated.



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

def updated
  Time.at(updated_unix)
end

#updated_unixObject



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

alias_method :updated_unix, :updated