Class: RapidApi::Services::ServiceResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/rapid_api/services/service_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorsObject

Returns the value of attribute errors.



4
5
6
# File 'lib/rapid_api/services/service_response.rb', line 4

def errors
  @errors
end

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/rapid_api/services/service_response.rb', line 4

def value
  @value
end

Instance Method Details

#has_errors?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/rapid_api/services/service_response.rb', line 6

def has_errors?
  !errors.empty?
end