Module: Filespot::Configuration

Included in:
Filespot
Defined in:
lib/filespot/configuration.rb

Constant Summary collapse

API_URL =
'api.platformcraft.ru'
API_VERSION =
1
OPTIONS =
[
  :url, :version, :apiuserid, :apikey
].freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



12
13
14
# File 'lib/filespot/configuration.rb', line 12

def self.extended(base)
  base.init
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



23
24
25
# File 'lib/filespot/configuration.rb', line 23

def configure
  yield self
end

#initObject



16
17
18
19
20
21
# File 'lib/filespot/configuration.rb', line 16

def init
  self.url = API_URL
  self.version = API_VERSION
  self.apiuserid = nil
  self.apikey = nil
end