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

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

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

  • account_sid (String)

    The SID of the Account that created this FlowValidate resource.

  • sid (String)

    The SID of the Call resource to fetch.



216
217
218
219
220
221
222
223
224
# File 'lib/twilio-ruby/rest/studio/v2/flow_validate.rb', line 216

def initialize(version, payload )
    super(version)
    
    
    # Marshaled Properties
    @properties = { 
        'valid' => payload['valid'],
    }
end

Instance Method Details

#inspectObject

Provide a detailed, user friendly representation



241
242
243
# File 'lib/twilio-ruby/rest/studio/v2/flow_validate.rb', line 241

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

#to_sObject

Provide a user friendly representation



235
236
237
# File 'lib/twilio-ruby/rest/studio/v2/flow_validate.rb', line 235

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

#validBoolean

Returns Boolean if the flow definition is valid.

Returns:

  • (Boolean)

    Boolean if the flow definition is valid.



229
230
231
# File 'lib/twilio-ruby/rest/studio/v2/flow_validate.rb', line 229

def valid
    @properties['valid']
end