Class: KapsoClientRuby::Types::FlowPreviewResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ FlowPreviewResponse

Returns a new instance of FlowPreviewResponse.



273
274
275
276
277
# File 'lib/kapso_client_ruby/types.rb', line 273

def initialize(data)
  preview_data = data['preview'] || {}
  @preview_url = preview_data['preview_url']
  @expires_at = preview_data['expires_at']
end

Instance Attribute Details

#expires_atObject (readonly)

Returns the value of attribute expires_at.



271
272
273
# File 'lib/kapso_client_ruby/types.rb', line 271

def expires_at
  @expires_at
end

#preview_urlObject (readonly)

Returns the value of attribute preview_url.



271
272
273
# File 'lib/kapso_client_ruby/types.rb', line 271

def preview_url
  @preview_url
end