Class: Jumbotron::Public::Team

Inherits:
Data
  • Object
show all
Defined in:
app/models/jumbotron/public.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#abbreviationObject (readonly)

Returns the value of attribute abbreviation

Returns:

  • (Object)

    the current value of abbreviation



22
23
24
# File 'app/models/jumbotron/public.rb', line 22

def abbreviation
  @abbreviation
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



22
23
24
# File 'app/models/jumbotron/public.rb', line 22

def id
  @id
end

#keyObject (readonly)

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



22
23
24
# File 'app/models/jumbotron/public.rb', line 22

def key
  @key
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



22
23
24
# File 'app/models/jumbotron/public.rb', line 22

def name
  @name
end

#nicknameObject (readonly)

Returns the value of attribute nickname

Returns:

  • (Object)

    the current value of nickname



22
23
24
# File 'app/models/jumbotron/public.rb', line 22

def nickname
  @nickname
end