Class: Particle::Library

Inherits:
Model
  • Object
show all
Defined in:
lib/particle/library.rb

Overview

Domain model for a firmware library

Instance Method Summary collapse

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