Sha256: b4de693bb568b350f25abb952adf0d2034670ff3d9bb9a617f46c2e2788976e1
Contents?: true
Size: 401 Bytes
Versions: 1
Compression:
Stored size: 401 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.0.7 | lib/smartphone_finder/device.rb |