class TicketflyPlus::Responses::Orgs

Attributes

orgs[RW]

Public Class Methods

new() click to toggle source
Calls superclass method TicketflyPlus::Responses::Base::new
# File lib/ticketfly_plus/responses.rb, line 56
def initialize
    super
    @orgs = !check_nil(response['orgs']).nil? ? get_orgs(response['orgs']) : response['orgs']
end

Public Instance Methods

get_orgs(orgs) click to toggle source
# File lib/ticketfly_plus/responses.rb, line 61
def get_orgs(orgs)
    arr = Array.new
    if orgs.length > 0
        orgs.each do |org|
            arr.push TicketflyPlus::Objects::Org.new(org)
        end
    end
    arr
end