Class: AppStoreDevApi::Schema::WebServiceEndpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/app_store_dev_api/schema/web_service_endpoint.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ WebServiceEndpoint

Returns a new instance of WebServiceEndpoint.



6
7
8
# File 'lib/app_store_dev_api/schema/web_service_endpoint.rb', line 6

def initialize(options)
  @options = options
end

Instance Method Details

#aliasObject



10
11
12
# File 'lib/app_store_dev_api/schema/web_service_endpoint.rb', line 10

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

#http_body_typeObject



18
19
20
# File 'lib/app_store_dev_api/schema/web_service_endpoint.rb', line 18

def http_body_type
  @options[:http_body_type]
end

#http_methodObject



14
15
16
# File 'lib/app_store_dev_api/schema/web_service_endpoint.rb', line 14

def http_method
  @options[:http_method].to_sym
end

#urlObject



22
23
24
# File 'lib/app_store_dev_api/schema/web_service_endpoint.rb', line 22

def url
  @options[:url]
end