Class: PostProxy::IceBreakersResponse
- Defined in:
- lib/postproxy/types.rb
Instance Attribute Summary collapse
-
#ice_breakers ⇒ Object
Returns the value of attribute ice_breakers.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ IceBreakersResponse
constructor
A new instance of IceBreakersResponse.
Methods inherited from Model
Constructor Details
#initialize(**attrs) ⇒ IceBreakersResponse
Returns a new instance of IceBreakersResponse.
255 256 257 258 259 260 |
# File 'lib/postproxy/types.rb', line 255 def initialize(**attrs) @ice_breakers = (attrs.delete(:ice_breakers) || []).map do |ib| ib.is_a?(IceBreaker) ? ib : IceBreaker.new(**ib) end super end |
Instance Attribute Details
#ice_breakers ⇒ Object
Returns the value of attribute ice_breakers.
253 254 255 |
# File 'lib/postproxy/types.rb', line 253 def ice_breakers @ice_breakers end |