Class: Trajectory::Client
- Inherits:
-
Object
- Object
- Trajectory::Client
- Defined in:
- lib/trajectory/client.rb
Instance Method Summary collapse
-
#check_environment! ⇒ Object
Checks if environment variables are set.
-
#initialize ⇒ Client
constructor
Creates a new trajectory client.
-
#projects ⇒ Projects
Fetches all trajectory projects of the account.
Constructor Details
#initialize ⇒ Client
Creates a new trajectory client
6 7 8 |
# File 'lib/trajectory/client.rb', line 6 def initialize check_environment! end |
Instance Method Details
#check_environment! ⇒ Object
Checks if environment variables are set.
13 14 15 |
# File 'lib/trajectory/client.rb', line 13 def check_environment! raise BadEvnrionmentError if ENV['TRAJECTORY_API_KEY'].nil? || ENV['TRAJECTORY_ACCOUNT_KEYWORD'].nil? end |