Class: Sofia::Types::Client::Body

Inherits:
Object
  • Object
show all
Defined in:
lib/sofia/types/client/body.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body = nil) ⇒ Body

: (?untyped? body) -> void



13
14
15
# File 'lib/sofia/types/client/body.rb', line 13

def initialize(body = nil)
  @body = validate_and_normalize(body) #:  Hash[String, untyped]
end

Instance Attribute Details

#bodyObject (readonly)

: Hash[String, untyped]



10
11
12
# File 'lib/sofia/types/client/body.rb', line 10

def body
  @body
end

Instance Method Details

#to_hObject

: -> Hash[String, untyped]



18
19
20
# File 'lib/sofia/types/client/body.rb', line 18

def to_h
  @body.dup
end