Class: ActionService::Protocol::ServiceResponseInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/action_service/protocol/abstract.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_body, content_type) ⇒ ServiceResponseInfo

Returns a new instance of ServiceResponseInfo.



87
88
89
90
# File 'lib/action_service/protocol/abstract.rb', line 87

def initialize(raw_body, content_type)
  @raw_body = raw_body
  @content_type = content_type
end

Instance Attribute Details

#content_typeObject (readonly)

Returns the value of attribute content_type.



85
86
87
# File 'lib/action_service/protocol/abstract.rb', line 85

def content_type
  @content_type
end

#raw_bodyObject (readonly)

Returns the value of attribute raw_body.



84
85
86
# File 'lib/action_service/protocol/abstract.rb', line 84

def raw_body
  @raw_body
end