Class: Particle::Platform
Overview
Domain model for one Particle Platform from the /v1/build_targets endpoint
Instance Method Summary collapse
-
#initialize(client, attributes) ⇒ Platform
constructor
A new instance of Platform.
-
#name ⇒ Object
This avoids upstream magic from making .name a Symbol–keep it a string yo.
Methods inherited from Model
attribute_reader, #attributes, #get_attributes, #id, #inspect
Constructor Details
#initialize(client, attributes) ⇒ Platform
Returns a new instance of Platform.
5 6 7 |
# File 'lib/particle/platform.rb', line 5 def initialize(client, attributes) super(client, attributes) end |
Instance Method Details
#name ⇒ Object
This avoids upstream magic from making .name a Symbol–keep it a string yo
11 12 13 |
# File 'lib/particle/platform.rb', line 11 def name @attributes[:name].to_s end |