Method: CollinsShell::AssetType#get

Defined in:
lib/collins_shell/asset_type.rb

#get(atype) ⇒ Object



47
48
49
50
51
52
53
54
# File 'lib/collins_shell/asset_type.rb', line 47

def get atype
  call_collins get_collins_client, "asset_type_get" do |client|
    header = [["Name", "Label"]]
    atype = client.asset_type_get(atype)
    table = header + [[atype.name, atype.label]]
    print_table table
  end
end