class TicketflyPlus::Responses::Events
Attributes
events[RW]
org[RW]
Public Class Methods
new(response)
click to toggle source
Calls superclass method
TicketflyPlus::Responses::Base::new
# File lib/ticketfly_plus/responses.rb, line 36 def initialize(response) super @events = !check_nil(response['events']).nil? ? get_events(response['events']) : response['events'] @org = !response['org'].nil? ? TicketflyPlus::Objects::Org.new(response['org']) : response['org'] end
Public Instance Methods
get_events(events)
click to toggle source
# File lib/ticketfly_plus/responses.rb, line 42 def get_events(events) arr = Array.new if events.length > 0 events.each do |event| arr.push TicketflyPlus::Objects::Event.new(event) end end arr end