Class: Particle::Library
Overview
Domain model for a firmware library
Instance Method Summary collapse
-
#initialize(client, attributes) ⇒ Library
constructor
A new instance of Library.
Methods inherited from Model
attribute_reader, #attributes, #get_attributes, #id, #inspect
Constructor Details
#initialize(client, attributes) ⇒ Library
Returns a new instance of Library.
7 8 9 10 11 12 |
# File 'lib/particle/library.rb', line 7 def initialize(client, attributes) super(client, attributes) if attributes.is_a? String @attributes = { name: attributes } end end |