Class: SpreeCmCommissioner::Integrations::StadiumXV1::Resources::TicketImage

Inherits:
Base
  • Object
show all
Defined in:
app/services/spree_cm_commissioner/integrations/stadium_x_v1/resources/ticket_image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

from_collection

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_imageObject

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_idObject

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_hObject



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