Class: Pears::Provider::Loco

Inherits:
Base
  • Object
show all
Defined in:
lib/pears/provider/loco.rb

Overview

Maps to a Locolize export

Instance Attribute Summary

Attributes inherited from Base

#data

Instance Method Summary collapse

Methods inherited from Base

#[], #each, #has_key?, #purge

Constructor Details

#initialize(api_key, url) ⇒ Loco

Returns a new instance of Loco.



5
6
7
# File 'lib/pears/provider/loco.rb', line 5

def initialize(api_key, url)
  @data = fetch_from_loco(api_key, url)
end