Sha256: 092bc3285cbacc7bfaaafefaebf360fe439d487d0bf045010e39ec2ce5b6a8b3
Contents?: true
Size: 461 Bytes
Versions: 2
Compression:
Stored size: 461 Bytes
Contents
#!/usr/bin/env ruby require 'lib/trollop' require 'pp' require 'command_line_options' require 'esodclient' def main client = ESODClient.new($options[:url], $options[:api_token]) response = if $options[:resource_path] client.get_path($options[:resource_path]) else client.get($options[:resource], $options[:id]) end if $options[:property] response = response.value_of_dotted_property($options[:property]) end pp response end main
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
esod-client-0.3.0 | esod-client.rb |
esod-client-0.2.1 | esod-client.rb |