Skip to content

Instantly share code, notes, and snippets.

View tambling's full-sized avatar
✌️
Yes hello

Dean Tambling tambling

✌️
Yes hello
  • GitHub Staff
  • Portland, OR
View GitHub Profile
function Civet(){
this.data = {};
this.id = 1;
};
Civet.prototype.create = function(entity, callback){
var error = null;
if((entity instanceof Object) && !Array.isArray(entity)) {
entity.id = this.id;
@tambling
tambling / vehicle.rb
Last active December 18, 2015 09:19 — forked from aespaldi/vehicle.rb
class Vehicle
attr_reader :color, :wheels, :status
def initialize(args)
@wheels=4
@fuel_economy=[true, false]
@color = args[:color]
end
def drive
@status=:driving
end