Sha256: 928b3c9085b73a7390a2ac79ca3ac0f78392e9459f0c810fa618ee72ea033ad2

Contents?: true

Size: 306 Bytes

Versions: 2

Compression:

Stored size: 306 Bytes

Contents

module AppleModels
  class Device
    attr_reader :identifier,
                :model,
                :version,
                :extended

    def initialize params
      params.each { |k,v| instance_variable_set("@#{k}", v) }
    end

    def friendly_name
      "#{model} #{version}"
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
apple_models-2.1.2 lib/apple_models/device.rb
apple_models-2.1.1 lib/apple_models/device.rb