class Oshpark::Price
Public Class Methods
attrs()
click to toggle source
# File lib/oshpark/price.rb, line 4 def self.attrs %w| width_in_mils height_in_mils pcb_layers quantity quantity_multiple minimum_quantity minimum_square_inches batches batch_cost subtotal | end
price_for(width, height, pcb_layers, quantity = nil)
click to toggle source
# File lib/oshpark/price.rb, line 10 def self.price_for width, height, pcb_layers, quantity = nil json = Oshpark::client.pricing width, height, pcb_layers, quantity from_json json['pricing'] end