lib/lens/configuration.rb in lens-0.0.2 vs lib/lens/configuration.rb in lens-0.0.3
- old
+ new
@@ -1,11 +1,11 @@
module Lens
class Configuration
- attr_accessor :app_id, :secret, :protocol, :host, :port
+ attr_accessor :app_key, :secret, :protocol, :host, :port
def protocol
- 'https'
+ @protocol || default_protocol
end
def host
@host || default_host
end
@@ -18,8 +18,12 @@
80
end
def default_host
'lens.coub.com'
+ end
+
+ def default_protocol
+ 'https'
end
end
end