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.



535
536
537
538
539
540
# File 'lib/postproxy/types.rb', line 535

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.



533
534
535
# File 'lib/postproxy/types.rb', line 533

def next_step
  @next_step
end

#profileObject

Returns the value of attribute profile.



533
534
535
# File 'lib/postproxy/types.rb', line 533

def profile
  @profile
end

#successObject

Returns the value of attribute success.



533
534
535
# File 'lib/postproxy/types.rb', line 533

def success
  @success
end