Cdss::Ruby
+cdss-ruby
-TODO: Delete this and the text below, and describe your gem
+ -Welcome to your new gem! In this directory, you’ll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file lib/cdss/ruby. To experiment with that code, run bin/console for an interactive prompt.
Installation
+ -TODO: Replace UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don’t plan to release to RubyGems.org.
The goal of cdss-ruby is to provide functions that help Ruby users to navigate, explore, and make requests to the CDSS REST API web service.
Install the gem and add to the application’s Gemfile by executing:
+The Colorado’s Decision Support Systems (CDSS) is a water management system created and developed by the Colorado Water Conservation Board (CWCB) and the Colorado Division of Water Resources (DWR).
-$ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
-
+Thank you to those at CWCB and DWR for providing an accessible and well documented REST API!
-If bundler is not being used to manage dependencies, install the gem by executing:
++-See
+cdssr, for the R version of this package
$ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
-
++-See
+cdsspy, for the Python version of this package
Usage
+-
TODO: Write usage instructions here
+-
+
- + + +
- + + +
- + + +
- + + +
- + + +
- + + +
Development
++ +
Installation
+ +Add this line to your application’s Gemfile:
+ +ruby
+gem 'cdss-ruby'
+
+and then execute
+ruby
+bundle install
+
or install it yourself as:
+bash
+gem install cdss-ruby
+
Getting Started
+ +Using the gem is simple. Create a client and start making requests:
+ +ruby
+irb(main):001:0> @client = Cdss.client
+=> #<Cdss::Client:0x0000000103f757c0 @api_key=nil, @options={}>
+irb(main):002:0> @client.get_sw_stations
+
Available Endpoints
+ +The cdss-ruby gem provides access to all CDSS API endpoints through an intuitive interface. For detailed documentation on each endpoint and its methods, please visit our documentation site.
+Here are some key modules:
-
+
- Cdss::AdminCalls - Access administrative calls and structure data +
- Cdss::Climate - Get climate station data and time series +
- Cdss::Groundwater - Access groundwater well data and measurements +
- Cdss::ReferenceTables - Get reference tables +
- Cdss::SurfaceWater - Access surface water stations and time series +
- Cdss::Telemetry - Get telemetry station data and time series +
- Cdss::WaterRights - Access water rights net amounts and transactions +
- Cdss::Analysis - Perform call analysis and get source route frameworks +
Development
After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.
Contributing
+Contributing
+ +If you would like to contribute to this plugin, submit a Pull Request with an excellent commit message. +Contributions are more then welcome, however please make sure that your commit message is clear and understandable.
+ +License
-Bug reports and pull requests are welcome on GitHub at github.com/mgm702/cdss-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
+The cdss-ruby gem is licensed under the MIT license.
-Code of Conduct
+Like The Gem?
-Everyone interacting in the Cdss::Ruby project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
+If you like Tabtastic.vim follow the repository on Github and if you are feeling extra nice, follow the author mgm702 on Twitter or Github.