Class: ServiceStack::IdResponse

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

Overview

Returned by APIs that return the Id of the created or updated entity.

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from DTO

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

Instance Attribute Details

#idObject

Returns the value of attribute id.



62
63
64
# File 'lib/servicestack/types.rb', line 62

def id
  @id
end

#response_statusObject

Returns the value of attribute response_status.



62
63
64
# File 'lib/servicestack/types.rb', line 62

def response_status
  @response_status
end

Class Method Details

.propertiesObject



64
65
66
67
68
69
# File 'lib/servicestack/types.rb', line 64

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