Class: Twilio::REST::Accounts::V1::ComplianceSignalsCheckList::AccountsV1ComplianceSignalsCheckSignalsQuietHoursLocation

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/accounts/v1/compliance_signals_check.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ AccountsV1ComplianceSignalsCheckSignalsQuietHoursLocation

Returns a new instance of AccountsV1ComplianceSignalsCheckSignalsQuietHoursLocation.



51
52
53
54
# File 'lib/twilio-ruby/rest/accounts/v1/compliance_signals_check.rb', line 51

def initialize(payload)
        @country_iso_code = payload["country_iso_code"]
        @state_code = payload["state_code"]
end

Instance Attribute Details

#country_iso_code ⇒ Object

Parameters:

  • : (country_iso_code) —

    [String] The ISO 3166-1 alpha-2 country of the recipient.

  • : (state_code) —

    [String] The state of the recipient.



50
51
52
# File 'lib/twilio-ruby/rest/accounts/v1/compliance_signals_check.rb', line 50

def country_iso_code
  @country_iso_code
end

#state_code ⇒ Object

Parameters:

  • : (country_iso_code) —

    [String] The ISO 3166-1 alpha-2 country of the recipient.

  • : (state_code) —

    [String] The state of the recipient.



50
51
52
# File 'lib/twilio-ruby/rest/accounts/v1/compliance_signals_check.rb', line 50

def state_code
  @state_code
end

Instance Method Details

#to_json(options = {}) ⇒ Object



55
56
57
58
59
60
# File 'lib/twilio-ruby/rest/accounts/v1/compliance_signals_check.rb', line 55

def to_json(options = {})
{
        "countryIsoCode": @country_iso_code,
        "stateCode": @state_code,
}.to_json(options)
end