Class: Capitan::Production

Inherits:
Object
  • Object
show all
Includes:
ObjectInitializer, ShowMethods
Defined in:
lib/capitan/production.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from ShowMethods

#alphabetical_title, #performances, #performances=, #venue, #venue=

Methods included from ObjectInitializer

#initialize

Instance Attribute Details

#buy_tickets_urlObject

Returns the value of attribute buy_tickets_url.



6
7
8
# File 'lib/capitan/production.rb', line 6

def buy_tickets_url
  @buy_tickets_url
end

#calendar_textObject

Returns the value of attribute calendar_text.



6
7
8
# File 'lib/capitan/production.rb', line 6

def calendar_text
  @calendar_text
end

#capi_show_detail_urlObject

Returns the value of attribute capi_show_detail_url.



6
7
8
# File 'lib/capitan/production.rb', line 6

def capi_show_detail_url
  @capi_show_detail_url
end

#descriptionObject

Returns the value of attribute description.



6
7
8
# File 'lib/capitan/production.rb', line 6

def description
  @description
end

#display_on_district_calendarObject

Returns the value of attribute display_on_district_calendar.



6
7
8
# File 'lib/capitan/production.rb', line 6

def display_on_district_calendar
  @display_on_district_calendar
end

#display_on_org_calendarObject

Returns the value of attribute display_on_org_calendar.



6
7
8
# File 'lib/capitan/production.rb', line 6

def display_on_org_calendar
  @display_on_org_calendar
end

#end_dateObject

Returns the value of attribute end_date.



6
7
8
# File 'lib/capitan/production.rb', line 6

def end_date
  @end_date
end

#errorObject

Returns the value of attribute error.



6
7
8
# File 'lib/capitan/production.rb', line 6

def error
  @error
end

#genreObject

Returns the value of attribute genre.



6
7
8
# File 'lib/capitan/production.rb', line 6

def genre
  @genre
end

#group_sales_urlObject

Returns the value of attribute group_sales_url.



6
7
8
# File 'lib/capitan/production.rb', line 6

def group_sales_url
  @group_sales_url
end

#keywordsObject

Returns the value of attribute keywords.



6
7
8
# File 'lib/capitan/production.rb', line 6

def keywords
  @keywords
end

#main_image_urlObject

Returns the value of attribute main_image_url.



6
7
8
# File 'lib/capitan/production.rb', line 6

def main_image_url
  @main_image_url
end

#organization_idObject

Returns the value of attribute organization_id.



6
7
8
# File 'lib/capitan/production.rb', line 6

def organization_id
  @organization_id
end

#presenter_nameObject

Returns the value of attribute presenter_name.



6
7
8
# File 'lib/capitan/production.rb', line 6

def presenter_name
  @presenter_name
end

#presenter_phoneObject

Returns the value of attribute presenter_phone.



6
7
8
# File 'lib/capitan/production.rb', line 6

def presenter_phone
  @presenter_phone
end

#production_idObject

Returns the value of attribute production_id.



6
7
8
# File 'lib/capitan/production.rb', line 6

def production_id
  @production_id
end

#production_nameObject

Returns the value of attribute production_name.



6
7
8
# File 'lib/capitan/production.rb', line 6

def production_name
  @production_name
end

#seasonObject

Returns the value of attribute season.



6
7
8
# File 'lib/capitan/production.rb', line 6

def season
  @season
end

#show_detail_urlObject

Returns the value of attribute show_detail_url.



6
7
8
# File 'lib/capitan/production.rb', line 6

def show_detail_url
  @show_detail_url
end

#show_typeObject

Returns the value of attribute show_type.



6
7
8
# File 'lib/capitan/production.rb', line 6

def show_type
  @show_type
end

#slugObject

Returns the value of attribute slug.



6
7
8
# File 'lib/capitan/production.rb', line 6

def slug
  @slug
end

#start_dateObject

Returns the value of attribute start_date.



6
7
8
# File 'lib/capitan/production.rb', line 6

def start_date
  @start_date
end

#status_idObject

Returns the value of attribute status_id.



6
7
8
# File 'lib/capitan/production.rb', line 6

def status_id
  @status_id
end

#thumbnail_image_urlObject

Returns the value of attribute thumbnail_image_url.



6
7
8
# File 'lib/capitan/production.rb', line 6

def thumbnail_image_url
  @thumbnail_image_url
end

#ticket_pricesObject

Returns the value of attribute ticket_prices.



6
7
8
# File 'lib/capitan/production.rb', line 6

def ticket_prices
  @ticket_prices
end

#titleObject

Returns the value of attribute title.



6
7
8
# File 'lib/capitan/production.rb', line 6

def title
  @title
end

#updated_atObject

Returns the value of attribute updated_at.



6
7
8
# File 'lib/capitan/production.rb', line 6

def updated_at
  @updated_at
end

Class Method Details

.get(id) ⇒ Object



15
16
17
18
19
# File 'lib/capitan/production.rb', line 15

def self.get(id)
  connection = Capitan::Connection.new
  response = connection.invoke_with_path("production/#{id}")
  Capitan::Production.new(response)
end