Sha256: a690ce3eb6344594d565faf4ba6e2cf6535039edeaea10f3598f683c0a4597d9
Contents?: true
Size: 606 Bytes
Versions: 32
Compression:
Stored size: 606 Bytes
Contents
module Sportradar module Api class Soccer::Ranking < Data attr_accessor :response, :categories def initialize(data) @response = data set_categories end private def set_categories if response["category"] if response["category"].is_a?(Array) @categories = response["category"].map {|x| Sportradar::Api::Soccer::Category.new x } elsif response["category"].is_a?(Hash) @categories = [ Sportradar::Api::Soccer::Category.new(response["category"]) ] end end end end end end
Version data entries
32 entries across 32 versions & 1 rubygems