Class: Applitools::Base::Environment
- Inherits:
-
Object
- Object
- Applitools::Base::Environment
- Defined in:
- lib/applitools/base/environment.rb
Instance Method Summary collapse
-
#initialize(os = nil, hosting_app = nil, display_size = nil, inferred = nil) ⇒ Environment
constructor
A new instance of Environment.
- #to_hash ⇒ Object
Constructor Details
#initialize(os = nil, hosting_app = nil, display_size = nil, inferred = nil) ⇒ Environment
Returns a new instance of Environment.
3 4 5 6 7 8 |
# File 'lib/applitools/base/environment.rb', line 3 def initialize(os = nil, hosting_app = nil, display_size = nil, inferred = nil) @os = os @hosting_app = hosting_app @display_size = display_size @inferred = inferred end |
Instance Method Details
#to_hash ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/applitools/base/environment.rb', line 10 def to_hash { os: @os, hosting_app: @hosting_app, display_size: @display_size.to_hash, inferred: @inferred } end |