Jibi Abraham Jibi Abraham - 2 months ago 13
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
    Client
    , 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
errors.

Answer
  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.