Sha256: 1676e2202e28dab58f7aa1d610a6625a4df9526c2dc24c4c5722c6b9ba5fbe8e

Contents?: true

Size: 520 Bytes

Versions: 8

Compression:

Stored size: 520 Bytes

Contents

require 'ruby_odata'
require File.expand_path('../../../features/support/constants', __FILE__)

svc = OData::Service.new "http://#{WEBSERVER}:#{HTTP_PORT_NUMBER}/SampleService/RubyOData.svc"

puts "Retrieving collections exposed by a service:"
puts svc.collections

puts "\nClasses created by the service"
puts svc.classes

puts "\nFunction Imports (custom service methods) found on the service"
puts svc.function_imports.to_json

puts "\nRetrieving the properties for the Product class"
puts Product.properties.to_json

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruby_odata-0.2.0.beta1 test/usage_samples/reflection.rb
ruby_odata-0.1.6 test/usage_samples/reflection.rb
ruby_odata-0.1.5 test/usage_samples/reflection.rb
ruby_odata-0.1.4 test/usage_samples/reflection.rb
ruby_odata-0.1.3 test/usage_samples/reflection.rb
ruby_odata-0.1.2 test/usage_samples/reflection.rb
ruby_odata-0.1.1 test/usage_samples/reflection.rb
ruby_odata-0.1.0 test/usage_samples/reflection.rb