Class: Kontena::Cli::Models::ImageRepo

Inherits:
Object
  • Object
show all
Includes:
CloudApiModel
Defined in:
lib/kontena/cli/models/image_repo.rb

Instance Attribute Summary

Attributes included from CloudApiModel

#api_data

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_atObject



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_atObject



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