lib/smartphone_finder/device.rb in smartphone_finder-cli-1.0.7 vs lib/smartphone_finder/device.rb in smartphone_finder-cli-1.1.0

- old
+ new

@@ -1,23 +1,23 @@ -require_relative '../concerns/helper_methods.rb' - -class SmartphoneFinder::Device - include HelperMethods - extend HelperMethods - @@all=[] - attr_accessor :name ,:url ,:brand ,:specifications - def initialize(name,url,brand=nil) - @specifications=nil - @name=name - @url=url - @brand=brand - if ! obj_exist? - @@all.push(self) - end - end - - def self.all - @@all - end - - -end +require_relative '../concerns/helper_methods.rb' + +class SmartphoneFinder::Device + include HelperMethods + extend HelperMethods + @@all=[] + attr_accessor :name ,:url ,:brand ,:specifications + def initialize(name,url,brand=nil) + @specifications=nil + @name=name + @url=url + @brand=brand + if ! obj_exist? + @@all.push(self) + end + end + + def self.all + @@all + end + + +end