Jibi Abraham Jibi Abraham - 1 year ago 76
Ruby Question

Stormpath ruby sdk no method 'applications'

I've been trying to test out the stormpath ruby sdk. The instructions from the repo has been followed as is (copied here for clarity)

  1. require 'stormpath-sdk'

  2. client = Stormpath::Client::Client.new({api_key: {id: "...", secret: "..."}})
    (Note the addition of an extra
    , differs from documentation - cannot instantiate a module)

At this point, any further execution of commands as documented in the repo becomes impossible due to
undefined method

Answer Source
  1. Stormpack::Client is a class.

  2. Stormpack::Client.new is perfectly valid.

You have a glitch somewhere else. Try to run and then copy their tests to get it working.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download