Sha256: 476f3d7f6b66b28453096fa89a611dba76abccf12272020ab02d871d59552936
Contents?: true
Size: 276 Bytes
Versions: 7
Compression:
Stored size: 276 Bytes
Contents
class Newslettre::APIModule attr_reader :api def initialize api @api = api end protected def api_prefix "/#{self.class.name.split(/::/).last.downcase}" end def request method, data = {} @api.send method, data, { :prefix => api_prefix } end end
Version data entries
7 entries across 7 versions & 1 rubygems