Class: EspnPub::Entities::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/espn_pub/entities/base.rb

Overview

Base entity that holds a shared ESPN API client.

Direct Known Subclasses

Game, League, Player, Team

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializevoid

Initialize the base entity and create the shared client.



12
13
14
# File 'lib/espn_pub/entities/base.rb', line 12

def initialize
  @client = init_client
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



7
8
9
# File 'lib/espn_pub/entities/base.rb', line 7

def client
  @client
end