Method: Particle::Model.attribute_reader

Defined in:
lib/particle/model.rb

.attribute_reader(*keys) ⇒ Object

Define accessor methods for attributes.

Will load the attributes from the cloud if not already done



30
31
32
33
34
35
36
# File 'lib/particle/model.rb', line 30

def self.attribute_reader(*keys)
  keys.each do |key|
    define_method key do
      attributes[key]
    end
  end
end