Class: Motion::Project::XcodeConfig::EnvWrapper
- Inherits:
-
Hash
- Object
- Hash
- Motion::Project::XcodeConfig::EnvWrapper
- Defined in:
- lib/motion-env/ios.rb
Instance Attribute Summary collapse
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
- #file_path ⇒ Object
-
#initialize(*args) ⇒ EnvWrapper
constructor
A new instance of EnvWrapper.
Constructor Details
#initialize(*args) ⇒ EnvWrapper
Returns a new instance of EnvWrapper.
8 9 10 11 |
# File 'lib/motion-env/ios.rb', line 8 def initialize(*args) super @timestamp = Time.now.to_i end |
Instance Attribute Details
#timestamp ⇒ Object
Returns the value of attribute timestamp.
6 7 8 |
# File 'lib/motion-env/ios.rb', line 6 def @timestamp end |
Instance Method Details
#file_path ⇒ Object
13 14 15 |
# File 'lib/motion-env/ios.rb', line 13 def file_path @file_path ||= "/tmp/motion_env_#{@timestamp}.rb" end |