module Fluxx
Fluxx
lightweight API wrapper
Constants
- CORE_MODELS
Core
Fluxx
API resource mappings.- VERSION
Public Class Methods
define_model(model_name, api_path)
click to toggle source
Helper to define the mapped models
@return [Class]
# File lib/fluxx/resources.rb, line 24 def self.define_model(model_name, api_path) new_resource = Class.new(Resource) new_resource.path("/api/rest/v2/#{api_path}") const_set(model_name, new_resource) end