Class: Twilio::REST::Studio::V2::FlowValidateInstance

Inherits:
InstanceResource show all
Defined in:
lib/twilio-ruby/rest/studio/v2/flow_validate.rb

Overview

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ FlowValidateInstance

Initialize the FlowValidateInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio



94
95
96
97
98
99
# File 'lib/twilio-ruby/rest/studio/v2/flow_validate.rb', line 94

def initialize(version, payload)
  super(version)

  # Marshaled Properties
  @properties = {'valid' => payload['valid'], }
end

Instance Method Details

#inspectObject

Provide a detailed, user friendly representation



115
116
117
# File 'lib/twilio-ruby/rest/studio/v2/flow_validate.rb', line 115

def inspect
  "<Twilio.Studio.V2.FlowValidateInstance>"
end

#to_sObject

Provide a user friendly representation



109
110
111
# File 'lib/twilio-ruby/rest/studio/v2/flow_validate.rb', line 109

def to_s
  "<Twilio.Studio.V2.FlowValidateInstance>"
end

#validBoolean

Returns The valid.

Returns:

  • (Boolean)

    The valid



103
104
105
# File 'lib/twilio-ruby/rest/studio/v2/flow_validate.rb', line 103

def valid
  @properties['valid']
end