Class: Awsm::Table::Image

Inherits:
Awsm::TableBase show all
Defined in:
lib/awsm/table/image.rb

Instance Method Summary collapse

Methods inherited from Awsm::TableBase

#initialize, #print

Constructor Details

This class inherits a constructor from Awsm::TableBase

Instance Method Details

#configObject



33
34
35
# File 'lib/awsm/table/image.rb', line 33

def config
  Awsm::table_config( :image )
end

#defaultFieldsObject



19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/awsm/table/image.rb', line 19

def defaultFields
  {
    image_id: -> (i) { i.image_id },
    name: -> (i) { i.name },
    location: -> (i) { i.image_location },
    creation_date: -> (i) { i.creation_date },
    public: -> (i) { i.public },
    architecture: -> (i) { i.architecture },
    image_type: -> (i) { i.image_type },
    description: -> (i) { i.description },
    hypervisor: -> (i) { i.hypervisor }
  }
end

#defaultHeadingsObject



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/awsm/table/image.rb', line 5

def defaultHeadings
  {
    image_id: 'Image ID',
    name: 'Name',
    location: 'Location',
    creation_date: 'Creation Date',
    public: 'Public',
    architecture: 'Architecture',
    image_type: 'Image Type',
    description: 'Description',
    hypervisor: 'Hypervisor'
  }
end