Class: ShelbyArena::ApiReader

Inherits:
Object
  • Object
show all
Defined in:
lib/readers/api_reader.rb

Overview

This class is the base class for all ShelbyArena objects and is meant to be inherited.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers.



6
7
8
# File 'lib/readers/api_reader.rb', line 6

def headers
  @headers
end

Instance Method Details

#load_dataObject

Loads the data.



11
12
13
14
# File 'lib/readers/api_reader.rb', line 11

def load_data
  @url_data_params ||= {}
  return _load_data(@url_data_path, @url_data_params)
end