Class: Kontena::Cli::Models::ImageRepo
- Inherits:
-
Object
- Object
- Kontena::Cli::Models::ImageRepo
- Includes:
- CloudApiModel
- Defined in:
- lib/kontena/cli/models/image_repo.rb
Instance Attribute Summary
Attributes included from CloudApiModel
Instance Method Summary collapse
Methods included from CloudApiModel
#id, #initialize, #method_missing
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Kontena::Cli::Models::CloudApiModel
Instance Method Details
#created_at ⇒ Object
7 8 9 |
# File 'lib/kontena/cli/models/image_repo.rb', line 7 def created_at Time.parse(@api_data.dig('attributes', 'created-at')).to_i end |
#updated_at ⇒ Object
11 12 13 |
# File 'lib/kontena/cli/models/image_repo.rb', line 11 def updated_at Time.parse(@api_data.dig('attributes', 'updated-at')).to_i end |