Class: Attune::Model::BlacklistDeleteResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/attune/models/blacklist_delete_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ BlacklistDeleteResponse

Returns a new instance of BlacklistDeleteResponse.



10
11
12
13
14
15
16
# File 'lib/attune/models/blacklist_delete_response.rb', line 10

def initialize(attributes = {})
  return if attributes.empty?
  # Workaround since JSON.parse has accessors as strings rather than symbols
  @result = attributes["result"] || attributes[:"result"]
  

end

Instance Attribute Details

#resultString

Returns the current value of result.

Returns:

  • (String)

    the current value of result



6
7
8
# File 'lib/attune/models/blacklist_delete_response.rb', line 6

def result
  @result
end

Instance Method Details

#to_bodyObject



18
19
20
21
22
23
# File 'lib/attune/models/blacklist_delete_response.rb', line 18

def to_body
  Hash[ATTRIBUTE_MAP.map do |internal, external|
    next unless value = send(internal)
    [external, value]
  end.compact]
end

#to_json(options = {}) ⇒ Object



25
26
27
# File 'lib/attune/models/blacklist_delete_response.rb', line 25

def to_json(options = {})
  to_body.to_json
end