class SmartphoneFinder::Device
Attributes
brand[RW]
name[RW]
specifications[RW]
url[RW]
Public Class Methods
all()
click to toggle source
# File lib/smartphone_finder/device.rb, line 18 def self.all @@all end
new(name,url,brand=nil)
click to toggle source
# File lib/smartphone_finder/device.rb, line 8 def initialize(name,url,brand=nil) @specifications=nil @name=name @url=url @brand=brand if ! obj_exist? @@all.push(self) end end