Class: Twilio::REST::Lookups::V2::LookupOverrideList::OverridesRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/lookups/v2/lookup_override.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ OverridesRequest

Returns a new instance of OverridesRequest.



26
27
28
29
# File 'lib/twilio-ruby/rest/lookups/v2/lookup_override.rb', line 26

def initialize(payload)
        @line_type = payload["line_type"]
        @reason = payload["reason"]
end

Instance Attribute Details

#line_typeObject

Parameters:

  • : (line_type)
    String

    The new line type to override the original line type

  • : (reason)
    String

    The reason for the override



25
26
27
# File 'lib/twilio-ruby/rest/lookups/v2/lookup_override.rb', line 25

def line_type
  @line_type
end

#reasonObject

Parameters:

  • : (line_type)
    String

    The new line type to override the original line type

  • : (reason)
    String

    The reason for the override



25
26
27
# File 'lib/twilio-ruby/rest/lookups/v2/lookup_override.rb', line 25

def reason
  @reason
end

Instance Method Details

#to_json(options = {}) ⇒ Object



30
31
32
33
34
35
# File 'lib/twilio-ruby/rest/lookups/v2/lookup_override.rb', line 30

def to_json(options = {})
{
        "line_type": @line_type,
        "reason": @reason,
}.to_json(options)
end