Class: Travis::Client::Cache
- Inherits:
-
WeakEntity
- Object
- Entity
- WeakEntity
- Travis::Client::Cache
- Defined in:
- lib/travis/client/cache.rb
Constant Summary
Constants inherited from Entity
Instance Attribute Summary collapse
-
#branch ⇒ Object
readonly
Returns the value of attribute branch.
-
#last_modified ⇒ Object
readonly
Returns the value of attribute last_modified.
-
#repository ⇒ Object
readonly
Returns the value of attribute repository.
-
#repository_id ⇒ Object
readonly
Returns the value of attribute repository_id.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#slug ⇒ Object
readonly
Returns the value of attribute slug.
Attributes inherited from Entity
#attributes, #curry, #id, #session
Instance Method Summary collapse
Methods inherited from WeakEntity
Methods included from NotLoadable
Methods inherited from Entity
#[], #[]=, aka, #attribute_names, attributes, base_path, #cancelable?, cast_id, #complete?, has, has_singleton, id?, id_field, #include?, #initialize, #inspect, inspect_info, #load, many, #missing?, one, preloadable, preloadable?, relations, #relations, #reload, #restartable?, subclass_for, subclasses, time, #to_h, #update_attributes, weak?
Constructor Details
This class inherits a constructor from Travis::Client::Entity
Instance Attribute Details
#branch ⇒ Object (readonly)
Returns the value of attribute branch.
1 2 3 |
# File 'lib/travis/client/cache.rb', line 1 def branch @branch end |
#last_modified ⇒ Object (readonly)
Returns the value of attribute last_modified.
1 2 3 |
# File 'lib/travis/client/cache.rb', line 1 def last_modified @last_modified end |
#repository ⇒ Object (readonly)
Returns the value of attribute repository.
1 2 3 |
# File 'lib/travis/client/cache.rb', line 1 def repository @repository end |
#repository_id ⇒ Object (readonly)
Returns the value of attribute repository_id.
1 2 3 |
# File 'lib/travis/client/cache.rb', line 1 def repository_id @repository_id end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
1 2 3 |
# File 'lib/travis/client/cache.rb', line 1 def size @size end |
#slug ⇒ Object (readonly)
Returns the value of attribute slug.
1 2 3 |
# File 'lib/travis/client/cache.rb', line 1 def slug @slug end |
Instance Method Details
#delete ⇒ Object
16 17 18 |
# File 'lib/travis/client/cache.rb', line 16 def delete repository.delete_caches(:branch => branch, :match => slug) end |
#inspect_info ⇒ Object
20 21 22 |
# File 'lib/travis/client/cache.rb', line 20 def inspect_info [repository.slug, branch, slug].compact.join(" ") end |