Class: Twilio::REST::Webhooks::V1::RuleInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/webhooks/v1/rule.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, rule_instance, headers, status_code) ⇒ RuleInstanceMetadata

Initializes a new RuleInstanceMetadata.

Parameters:

  • version (Version) —

    Version that contains the resource

  • [}RuleInstance] —

    rule_instance The instance associated with the metadata.

  • headers (Hash) —

    Header object with response headers.

  • status_code (Integer) —

    The HTTP status code of the response.



522
523
524
525
# File 'lib/twilio-ruby/rest/webhooks/v1/rule.rb', line 522

def initialize(version, rule_instance, headers, status_code)
    super(version, headers, status_code)
    @rule_instance = rule_instance
end

Instance Method Details

#headers ⇒ Object



531
532
533
# File 'lib/twilio-ruby/rest/webhooks/v1/rule.rb', line 531

def headers
    @headers
end

#rule ⇒ Object



527
528
529
# File 'lib/twilio-ruby/rest/webhooks/v1/rule.rb', line 527

def rule
    @rule_instance
end

#status_code ⇒ Object



535
536
537
# File 'lib/twilio-ruby/rest/webhooks/v1/rule.rb', line 535

def status_code
    @status_code
end

#to_s ⇒ Object



539
540
541
# File 'lib/twilio-ruby/rest/webhooks/v1/rule.rb', line 539

def to_s
  "<Twilio.Api.V2010.RuleInstanceMetadata status=#{@status_code}>"
end