Module: FreezeTag
- Defined in:
- lib/freezetag.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Constant Summary
collapse
- API_ENDPOINT =
'https://www.freezetag.io/api/v1/tags'
Class Method Summary
collapse
Class Method Details
.included(base) ⇒ Object
11
12
13
14
15
16
17
18
|
# File 'lib/freezetag.rb', line 11
def self.included(base)
base.class_eval do
extend ClassMethods
include InstanceMethods
cattr_accessor :freezetag_attribute, :freezetag_api_key
end
base.freezetag_api_key = self.api_key
end
|
.initialize(options = {}) ⇒ Object
7
8
9
|
# File 'lib/freezetag.rb', line 7
def self.initialize(options = {})
self.api_key = options[:api_key]
end
|