Skip to content

Instantly share code, notes, and snippets.

View JuarezLustosa's full-sized avatar
🏠
Working from home

Juarez Lustosa JuarezLustosa

🏠
Working from home
View GitHub Profile
Ruby e Rails
Guias:
http://guides.rubyonrails.org/
Livros (Free mas vale pagar um café para o autor ;) ):
https://leanpub.com/conhecendo-ruby
Livros (Pagos):
https://leanpub.com/conhecendo-rails
class Rate
attr_accessor :credit_card, :value,
def self.calculate(credit_card, value)
new(credit_card, value).calculate
end
def initialize(credit_card, value)
@credit_card = credit_card
@value = value.to_i