Class: PostProxy::IceBreakersResponse

Inherits:
Model
  • Object
show all
Defined in:
lib/postproxy/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#to_h

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_breakersObject

Returns the value of attribute ice_breakers.



253
254
255
# File 'lib/postproxy/types.rb', line 253

def ice_breakers
  @ice_breakers
end