Module: TwentyBN
- Defined in:
- lib/twentybn/image.rb,
lib/twentybn/config.rb,
lib/twentybn/railtie.rb,
lib/twentybn/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.1.1"
Class Attribute Summary collapse
-
.config ⇒ Object
Returns the value of attribute config.
Class Method Summary collapse
Class Attribute Details
.config ⇒ Object
Returns the value of attribute config.
3 4 5 |
# File 'lib/twentybn/config.rb', line 3 def config @config end |
Class Method Details
.api_key=(api_key) ⇒ Object
7 8 9 |
# File 'lib/twentybn/image.rb', line 7 def self.api_key=(api_key) config[:api_key] = api_key.to_s end |
.image(image) ⇒ Object
11 12 13 |
# File 'lib/twentybn/image.rb', line 11 def self.image(image) Image.new(image) end |