class HammerCLIForeman::Searchable

Attributes

description[R]
name[R]

Public Class Methods

new(name, description, options={}) click to toggle source
# File lib/hammer_cli_foreman/id_resolver.rb, line 5
def initialize(name, description, options={})
  @name = name
  @description = description
  @editable = options[:editable].nil? ? true : options[:editable]
  @format = options[:format]
end

Public Instance Methods

editable?() click to toggle source
# File lib/hammer_cli_foreman/id_resolver.rb, line 18
def editable?
  @editable
end
format() click to toggle source
# File lib/hammer_cli_foreman/id_resolver.rb, line 22
def format
  @format
end
plural_name() click to toggle source
# File lib/hammer_cli_foreman/id_resolver.rb, line 14
def plural_name
  ApipieBindings::Inflector.pluralize(@name)
end