Class: NBA::Conference

Inherits:
Shale::Mapper
  • Object
show all
Defined in:
lib/nba/conference.rb

Overview

Represents an NBA conference (Eastern or Western)

Instance Attribute Summary collapse

Instance Attribute Details

#idInteger

Returns the unique identifier for the conference

Examples:

conference.id #=> 1

Returns:

  • (Integer)

    the unique identifier for the conference



15
# File 'lib/nba/conference.rb', line 15

attribute :id, Shale::Type::Integer

Returns the API link for the conference

Examples:

conference.link #=> "/api/v1/conferences/1"

Returns:

  • (String)

    the API link for the conference



31
# File 'lib/nba/conference.rb', line 31

attribute :link, Shale::Type::String

#nameString

Returns the conference name

Examples:

conference.name #=> "Eastern"

Returns:

  • (String)

    the conference name



23
# File 'lib/nba/conference.rb', line 23

attribute :name, Shale::Type::String