Sha256: bdea7ec794a580e1c20401288b8803e857c65d13dd94e75ad57279bdbc39252c

Contents?: true

Size: 687 Bytes

Versions: 5

Compression:

Stored size: 687 Bytes

Contents

module KrakenMobile
	module Models
		class Device

      #-------------------------------
      # Fields
      #-------------------------------
			attr_accessor :id
			attr_accessor :model
      attr_accessor :position
      attr_accessor :config

      #-------------------------------
      # Constructors
      #-------------------------------
			def initialize(id, model, position, config = {})
				@id = id
				@model = model
        @position = position
        @config = config
			end

      #-------------------------------
      # Helpers
      #-------------------------------
			def screenshot_prefix
				@id.gsub('.', '_').gsub(/:(.*)/, '').to_s + '_'
			end

		end
	end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kraken-mobile-1.0.4 lib/kraken-mobile/models/device.rb
kraken-mobile-1.0.3 lib/kraken-mobile/models/device.rb
kraken-mobile-1.0.2 lib/kraken-mobile/models/device.rb
kraken-mobile-1.0.1 lib/kraken-mobile/models/device.rb
kraken-mobile-1.0.0 lib/kraken-mobile/models/device.rb