Skip to content

Commit

Permalink
Move WebServiceEndpoint to Schema Namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Decot committed Aug 21, 2019
1 parent 1b0547f commit 279b4a4
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 26 deletions.
1 change: 0 additions & 1 deletion lib/app_store_connect/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

require 'active_support/all'

require 'app_store_connect/web_service_endpoint'
require 'app_store_connect/request'
require 'app_store_connect/authorization'

Expand Down
1 change: 1 addition & 0 deletions lib/app_store_connect/schema.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require 'app_store_connect/schema/type'
require 'app_store_connect/schema/web_service_endpoint'

module AppStoreConnect
class Schema
Expand Down
27 changes: 27 additions & 0 deletions lib/app_store_connect/schema/web_service_endpoint.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# frozen_string_literal: true

module AppStoreConnect
class Schema
class WebServiceEndpoint
def initialize(**options)
@options = options
end

def alias
@options.fetch(:alias).to_sym
end

def http_method
@options[:http_method].to_sym
end

def http_body_type
@options[:http_body_type]
end

def url
@options[:url]
end
end
end
end
25 changes: 0 additions & 25 deletions lib/app_store_connect/web_service_endpoint.rb

This file was deleted.

0 comments on commit 279b4a4

Please sign in to comment.