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