Sha256: 586395d233182386ddfc8691c7b19215f60b3d95c6ad0d3c7dafb49188580638
Contents?: true
Size: 424 Bytes
Versions: 1
Compression:
Stored size: 424 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smartphone_finder-cli-1.1.0 | lib/smartphone_finder/device.rb |