Sha256: c71dac51928c73513cc587344e6cb25e0de76336b7bca7aee720a66138bf0a2f
Contents?: true
Size: 607 Bytes
Versions: 4
Compression:
Stored size: 607 Bytes
Contents
# frozen_string_literal: true module Tikkie module Api module Responses # Response when requesting platforms (list). class Platforms < Base include Enumerable def each(&block) platforms.each(&block) end private def platforms @platforms ||= begin platforms = [] unless error? data.each do |platform| platforms << Tikkie::Api::Responses::Platform.new(platform) end end platforms end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems