Method: Flydata::Command::Base#data_entry
- Defined in:
- lib/flydata/command/base.rb
#data_entry(refresh: false) ⇒ Object
58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/flydata/command/base.rb', line 58 def data_entry(refresh: false) if @de.nil? || refresh @de = retrieve_data_entries.first end unless @de raise AgentInternalError.new( "No data entry exists. Please set one up on the FlyData Console (#{dashboard_url})", AgentInternalError::NO_DATA_ENTRY_ERR) end @de end |