Class: Foto::Consumer
- Inherits:
-
Object
- Object
- Foto::Consumer
- Defined in:
- lib/foto/consumer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
Class Method Summary collapse
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(attributes = {}) ⇒ Consumer
constructor
A new instance of Consumer.
- #save ⇒ Object
Constructor Details
#initialize(attributes = {}) ⇒ Consumer
Returns a new instance of Consumer.
9 10 11 12 13 |
# File 'lib/foto/consumer.rb', line 9 def initialize(attributes={}) attributes.each do |k, v| send("#{k}=", v) end end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/foto/consumer.rb', line 3 def api_key @api_key end |
Class Method Details
.url ⇒ Object
5 6 7 |
# File 'lib/foto/consumer.rb', line 5 def self.url raise NotImplementedError.new('You must implement self.url') end |