Class: NBA::Division

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

Overview

Represents an NBA division

Instance Attribute Summary collapse

Instance Attribute Details

#conferenceConference

Returns the conference this division belongs to

Examples:

division.conference #=> #<NBA::Conference>

Returns:



40
# File 'lib/nba/division.rb', line 40

attribute :conference, Conference

#idInteger

Returns the unique identifier for the division

Examples:

division.id #=> 5

Returns:

  • (Integer)

    the unique identifier for the division



16
# File 'lib/nba/division.rb', line 16

attribute :id, Shale::Type::Integer

Returns the API link for the division

Examples:

division.link #=> "/api/v1/divisions/5"

Returns:

  • (String)

    the API link for the division



32
# File 'lib/nba/division.rb', line 32

attribute :link, Shale::Type::String

#nameString

Returns the division name

Examples:

division.name #=> "Atlantic"

Returns:

  • (String)

    the division name



24
# File 'lib/nba/division.rb', line 24

attribute :name, Shale::Type::String