Sha256: 4ecff37c6713b2f8af4627d9bb210748464bbe136a7858d430cf70813f9b7a92

Contents?: true

Size: 399 Bytes

Versions: 7

Compression:

Stored size: 399 Bytes

Contents

module ShelbyArena

  class FamilyReader < ApiReader

    # Constructor.
    #
    # @param family_id (optional) The ID of the family to load.
    def initialize(family_id = nil)
      if family_id.nil?
        raise 'The create endpoint is not known yet.'
        @url_new_data_path = nil # Not sure yet
      else
        @url_data_path = "family/#{family_id}"
      end
    end
    
  end

end


Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
shelby-arena-api-0.3.2 lib/readers/family_reader.rb
shelby-arena-api-0.3.1 lib/readers/family_reader.rb
shelby-arena-api-0.3.0 lib/readers/family_reader.rb
shelby-arena-api-0.2.2 lib/readers/family_reader.rb
shelby-arena-api-0.2.1 lib/readers/family_reader.rb
shelby-arena-api-0.2.0 lib/readers/family_reader.rb
shelby-arena-api-0.1.0 lib/readers/family_reader.rb