Class: Sofia::Types::Client::Body
- Inherits:
-
Object
- Object
- Sofia::Types::Client::Body
- Defined in:
- lib/sofia/types/client/body.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
: Hash[String, untyped].
Instance Method Summary collapse
-
#initialize(body = nil) ⇒ Body
constructor
: (?untyped? body) -> void.
-
#to_h ⇒ Object
: -> Hash[String, untyped].
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
#body ⇒ Object (readonly)
: Hash[String, untyped]
10 11 12 |
# File 'lib/sofia/types/client/body.rb', line 10 def body @body end |
Instance Method Details
#to_h ⇒ Object
: -> Hash[String, untyped]
18 19 20 |
# File 'lib/sofia/types/client/body.rb', line 18 def to_h @body.dup end |