Class: Oshpark::Layer
- Inherits:
-
Object
show all
- Includes:
- Model
- Defined in:
- lib/oshpark/layer.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Model
#dirty?, included, #initialize
Class Method Details
.attrs ⇒ Object
3
4
5
|
# File 'lib/oshpark/layer.rb', line 3
def self.attrs
%w| id name gerber_file_url image imported_from width_in_mils height_in_mils |
end
|
Instance Method Details
#image ⇒ Object
8
9
10
|
# File 'lib/oshpark/layer.rb', line 8
def image
Image.from_json @image
end
|