Class: PostProxy::TelegramConnectionResponse

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) ⇒ TelegramConnectionResponse

Returns a new instance of TelegramConnectionResponse.



422
423
424
425
426
427
# File 'lib/postproxy/types.rb', line 422

def initialize(**attrs)
  @profile = nil
  @next_step = nil
  super
  @profile = SyncProfile.new(**@profile.transform_keys(&:to_sym)) if @profile.is_a?(Hash)
end

Instance Attribute Details

#next_stepObject

Returns the value of attribute next_step.



420
421
422
# File 'lib/postproxy/types.rb', line 420

def next_step
  @next_step
end

#profileObject

Returns the value of attribute profile.



420
421
422
# File 'lib/postproxy/types.rb', line 420

def profile
  @profile
end

#successObject

Returns the value of attribute success.



420
421
422
# File 'lib/postproxy/types.rb', line 420

def success
  @success
end