Project

remotr

0.0
No commit activity in last 3 years
No release in over 3 years
See https://github.com/bukowskis/remotr
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Remotr

From version 2.0.0 and up this gem is only compatible with Rails 5.

Example usage:

module RemoteMyApp
  include Remotr::Configurable
end

RemoteMyApp.configure do |config|
  config.base_uri    = 'https://myapp.example.com'
  config.api_key     = 'abcdef'
  config.api_version = 1
  config.base_path   = "/api/v#{config.api_version}"
end

module RemoteMyApp
  module Event
    include Remotr::Respondable

    def self.all
      respond_with get('/events'), :events
    end
  end
end