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