module FluentECS::Resource::ClassMethods
Attributes
resource_endpoint[RW]
Public Instance Methods
get()
click to toggle source
Calls superclass method
# File lib/fluent_ecs/resource.rb, line 14 def get response = super(resource_endpoint) if response.success? response.parsed_response else err = "GET #{base_uri}#{resource_endpoint}" \ " failed with code: #{response.code}" raise RequestError, err end rescue Errno::ECONNREFUSED, HTTParty::Error, Timeout::Error => e raise IntrospectError, e.message end