Class: OpenActive::Models::Schema::Ticket

Inherits:
Intangible show all
Defined in:
lib/openactive/models/schema/ticket.rb

Instance Attribute Summary collapse

Attributes inherited from Thing

#additional_type, #alternate_name, #description, #disambiguating_description, #identifier, #image, #main_entity_of_page, #name, #potential_action, #same_as, #subject_of, #url

Attributes inherited from JsonLdModel

#context, #id

Method Summary

Methods inherited from BaseModel

#assign_attributes, define_property, deserialize, #deserialize, deserialize_class, #initialize, #serialize, serialize, #set_property, #to_json

Methods included from Concerns::TypeChecker

#check_types, included

Methods included from Concerns::JsonLdSerializable

included, #to_h, #values

Constructor Details

This class inherits a constructor from OpenActive::BaseModel

Instance Attribute Details

#date_issuedDate, ...

Returns:

  • (Date, DateTime, nil)


12
13
14
# File 'lib/openactive/models/schema/ticket.rb', line 12

def date_issued
  @date_issued
end

#issued_byOpenActive::Models::Schema::Organization



30
31
32
# File 'lib/openactive/models/schema/ticket.rb', line 30

def issued_by
  @issued_by
end

#price_currencyString

Returns:

  • (String)


40
41
42
# File 'lib/openactive/models/schema/ticket.rb', line 40

def price_currency
  @price_currency
end

#ticket_numberString

Returns:

  • (String)


35
36
37
# File 'lib/openactive/models/schema/ticket.rb', line 35

def ticket_number
  @ticket_number
end

#ticket_tokenURI, String

Returns:

  • (URI, String)


24
25
26
# File 'lib/openactive/models/schema/ticket.rb', line 24

def ticket_token
  @ticket_token
end

#ticketed_seatOpenActive::Models::Schema::Seat



19
20
21
# File 'lib/openactive/models/schema/ticket.rb', line 19

def ticketed_seat
  @ticketed_seat
end

#total_priceString, ...

Returns:



45
46
47
# File 'lib/openactive/models/schema/ticket.rb', line 45

def total_price
  @total_price
end

#typeString

Returns:

  • (String)


7
8
9
# File 'lib/openactive/models/schema/ticket.rb', line 7

def type
  "schema:Ticket"
end

#under_nameOpenActive::Models::Schema::Organization, OpenActive::Models::Schema::Person



53
54
55
# File 'lib/openactive/models/schema/ticket.rb', line 53

def under_name
  @under_name
end