Class: Jumbotron::Public::Team
- Inherits:
-
Data
- Object
- Data
- Jumbotron::Public::Team
- Defined in:
- app/models/jumbotron/public.rb
Instance Attribute Summary collapse
-
#abbreviation ⇒ Object
readonly
Returns the value of attribute abbreviation.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#nickname ⇒ Object
readonly
Returns the value of attribute nickname.
Instance Method Summary collapse
-
#initialize(id:, name:, key:, nickname: nil, abbreviation: nil) ⇒ Team
constructor
A new instance of Team.
Constructor Details
#initialize(id:, name:, key:, nickname: nil, abbreviation: nil) ⇒ Team
Returns a new instance of Team.
23 24 25 |
# File 'app/models/jumbotron/public.rb', line 23 def initialize(id:, name:, key:, nickname: nil, abbreviation: nil) super(id:, name:, nickname:, key:, abbreviation:) end |
Instance Attribute Details
#abbreviation ⇒ Object (readonly)
Returns the value of attribute abbreviation
22 23 24 |
# File 'app/models/jumbotron/public.rb', line 22 def abbreviation @abbreviation end |
#id ⇒ Object (readonly)
Returns the value of attribute id
22 23 24 |
# File 'app/models/jumbotron/public.rb', line 22 def id @id end |
#key ⇒ Object (readonly)
Returns the value of attribute key
22 23 24 |
# File 'app/models/jumbotron/public.rb', line 22 def key @key end |
#name ⇒ Object (readonly)
Returns the value of attribute name
22 23 24 |
# File 'app/models/jumbotron/public.rb', line 22 def name @name end |
#nickname ⇒ Object (readonly)
Returns the value of attribute nickname
22 23 24 |
# File 'app/models/jumbotron/public.rb', line 22 def nickname @nickname end |