Class: SpreeCmCommissioner::Integrations::StadiumXV1::Resources::League
- Inherits:
-
Base
- Object
- Base
- SpreeCmCommissioner::Integrations::StadiumXV1::Resources::League
- Defined in:
- app/services/spree_cm_commissioner/integrations/stadium_x_v1/resources/league.rb
Instance Attribute Summary collapse
-
#_id ⇒ Object
Returns the value of attribute _id.
-
#logo ⇒ Object
Returns the value of attribute logo.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ League
constructor
A new instance of League.
- #to_h ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(attributes = {}) ⇒ League
Returns a new instance of League.
6 7 8 |
# File 'app/services/spree_cm_commissioner/integrations/stadium_x_v1/resources/league.rb', line 6 def initialize(attributes = {}) super(attributes) end |
Instance Attribute Details
#_id ⇒ Object
Returns the value of attribute _id.
4 5 6 |
# File 'app/services/spree_cm_commissioner/integrations/stadium_x_v1/resources/league.rb', line 4 def _id @_id end |
#logo ⇒ Object
Returns the value of attribute logo.
4 5 6 |
# File 'app/services/spree_cm_commissioner/integrations/stadium_x_v1/resources/league.rb', line 4 def logo @logo end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'app/services/spree_cm_commissioner/integrations/stadium_x_v1/resources/league.rb', line 4 def name @name end |
Instance Method Details
#to_h ⇒ Object
10 11 12 13 14 15 16 |
# File 'app/services/spree_cm_commissioner/integrations/stadium_x_v1/resources/league.rb', line 10 def to_h { _id: _id, name: name, logo: logo }.compact end |