#Object Oriented Javascript
#Overview
- Creating Objects in JavaScript
new Object();
- Object Literal Notation (Important)
- Factory Function
- Review JavaScript's
this
- More Creating Objects in JavaScript
- Constructor Function
#Object Oriented Javascript
#Overview
new Object();
this
function Dinosaur(color){ | |
this.id = Dinosaur.prototype.counter++; | |
this.dob = Date.now(); | |
this.color = color; | |
}; | |
Dinosaur.prototype.roar = function(){ | |
console.log('RARWARARRR said the ' + this.color + ' Dinosaur!!!'); | |
}; |
#Building APIs
#Overview
gem 'pg' | |
group :development do | |
gem 'ruby-debug' | |
end | |
gem 'rake', '~> 0.8.7' | |
gem 'devise' | |
gem 'oa-oauth', :require => 'omniauth/oauth' | |
gem 'omniauth' | |
gem 'haml' | |
gem 'dynamic_form' |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>PizzaShack</title> | |
<%= stylesheet_link_tag 'application', media: 'all' %> | |
<%= javascript_include_tag 'application' %> | |
<%= csrf_meta_tags %> | |
</head> | |
<body> |