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


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"


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

attribute :link, Shale::Type::String

#nameString

Returns the conference name

Examples:

conference.name #=> "Eastern"


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

attribute :name, Shale::Type::String