Class: Callapi::Call::Parser::Json::AsObject

Inherits:
Callapi::Call::Parser::Json show all
Defined in:
lib/callapi/call/response/json/as_object.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Callapi::Call::Parser

#data, #initialize, #status

Constructor Details

This class inherits a constructor from Callapi::Call::Parser

Class Method Details

.keys_excluded_from_parsingObject



10
11
12
# File 'lib/callapi/call/response/json/as_object.rb', line 10

def self.keys_excluded_from_parsing
  @keys_excluded_from_parsing ||= []
end

.keys_excluded_from_parsing=(keys_excluded_from_parsing) ⇒ Object



14
15
16
# File 'lib/callapi/call/response/json/as_object.rb', line 14

def self.keys_excluded_from_parsing=(keys_excluded_from_parsing)
  @keys_excluded_from_parsing = keys_excluded_from_parsing
end

Instance Method Details

#parseObject



4
5
6
7
8
# File 'lib/callapi/call/response/json/as_object.rb', line 4

def parse
  object.tap do |struct|
    append_data_excluded_from_parsing(struct)
  end
end