class AppStoreConnect::Schema

Attributes

objects[R]
types[R]
web_service_endpoints[R]

Public Class Methods

new(path) click to toggle source
# File lib/app_store_connect/schema.rb, line 11
def initialize(path)
  schema = JSON.parse(File.read(path)).deep_symbolize_keys
  @types = schema[:types].map do |options|
    Type.new(options)
  end
  @web_service_endpoints = schema[:web_service_endpoints].map do |options|
    WebServiceEndpoint.new(options)
  end
  @objects = schema[:objects].map do |options|
    Object.new(options)
  end
end