Sha256: 07575f9478c405449d8b3ecfc06110cd177705cda06400dacc6ba1929d15a66a
Contents?: true
Size: 618 Bytes
Versions: 3
Compression:
Stored size: 618 Bytes
Contents
module Trajectory class Client # Creates a new trajectory client # # @return [Client] def initialize check_environment! end # Checks if environment variables are set. # # @raise [BadEvnrionmentError] if TRAJECTORY_API_KEY and TRAJECTORY_ACCOUNT_KEYWORD are not set def check_environment! raise BadEvnrionmentError if ENV['TRAJECTORY_API_KEY'].nil? || ENV['TRAJECTORY_ACCOUNT_KEYWORD'].nil? end # Fetches all trajectory projects of the account # # @return [Projects] the projects collection def projects DataStore.projects end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
trajectory-0.1.2 | lib/trajectory/client.rb |
trajectory-0.1.1 | lib/trajectory/client.rb |
trajectory-0.1.0 | lib/trajectory/client.rb |