class OffTheGridTrucks::DetailedEvent
Attributes
community_activations[R]
entertainments[R]
location[R]
location_details[R]
meal_type[R]
services[R]
Public Class Methods
all()
click to toggle source
# File lib/off_the_grid_trucks/detailed_event.rb, line 24 def all; end
get(id)
click to toggle source
# File lib/off_the_grid_trucks/detailed_event.rb, line 26 def get(id) new(Request.get(resource: 'events', id: id)['event']) end
new(args)
click to toggle source
Calls superclass method
# File lib/off_the_grid_trucks/detailed_event.rb, line 12 def initialize(args) super(args) @meal_type = args.fetch('mealType') {} @location = Location.new(args.fetch('location') {}) @location_details = args.fetch('locationDetails') {} @services = args.fetch('services') {}.map { |service| Service.new(service) } @community_activations = args.fetch('communityActivations') {} @entertainments = args.fetch('entertainments') {} end