Class: ServiceStack::StringResponse

Inherits:
Object
  • Object
show all
Includes:
DTO
Defined in:
lib/servicestack/types.rb

Overview

Returned by APIs that return a single string result.

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from DTO

#==, included, #initialize, #inspect, #to_hash, #to_json

Instance Attribute Details

#metaObject

Returns the value of attribute meta.



75
76
77
# File 'lib/servicestack/types.rb', line 75

def meta
  @meta
end

#response_statusObject

Returns the value of attribute response_status.



75
76
77
# File 'lib/servicestack/types.rb', line 75

def response_status
  @response_status
end

#resultObject

Returns the value of attribute result.



75
76
77
# File 'lib/servicestack/types.rb', line 75

def result
  @result
end

Class Method Details

.propertiesObject



77
78
79
80
81
82
83
# File 'lib/servicestack/types.rb', line 77

def self.properties
  {
    result: { name: 'result' },
    meta: { name: 'meta' },
    response_status: { name: 'responseStatus', type: ResponseStatus },
  }
end