Method: LabClient::Klass#api_methods

Defined in:
lib/labclient/klass.rb

#api_methodsObject

Documented API Methods



44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/labclient/klass.rb', line 44

def api_methods
  docs = LabClient::Docs.docs.dig(group_name, 'Reference')

  unless docs
    puts 'No Available Help'
    return false
  end

  LabClient::Docs.docs.dig(group_name, 'Reference').map do |doc|
    doc[:options].map do |opt|
      opt[:name]
    end
  end.flatten.sort
end