Class: Flydata::Helper::Action::ActionPosition
- Inherits:
-
Object
- Object
- Flydata::Helper::Action::ActionPosition
show all
- Includes:
- Util::FileUtil
- Defined in:
- lib/flydata/helper/action/check_remote_actions.rb
Instance Method Summary
collapse
#read_line, #tail, #write_line
Constructor Details
60
61
62
|
# File 'lib/flydata/helper/action/check_remote_actions.rb', line 60
def initialize(config)
@path = config.helper_action_position_path
end
|
Instance Method Details
#load ⇒ Object
66
67
68
|
# File 'lib/flydata/helper/action/check_remote_actions.rb', line 66
def load
read_line(@path).to_i
end
|
#save(position) ⇒ Object
63
64
65
|
# File 'lib/flydata/helper/action/check_remote_actions.rb', line 63
def save(position)
write_line(@path, position.to_s)
end
|