Class: Markety::Response::GetCustomObjectResponse
Instance Attribute Summary
#error_message
Instance Method Summary
collapse
#success?, #to_hash, #to_xml
Constructor Details
Returns a new instance of GetCustomObjectResponse.
4
5
6
|
# File 'lib/markety/response/get_custom_object_response.rb', line 4
def initialize(response)
super(:get_custom_object_response, response)
end
|
Instance Method Details
#custom_object ⇒ Object
16
17
18
|
# File 'lib/markety/response/get_custom_object_response.rb', line 16
def custom_object
custom_objects.first
end
|
#custom_objects ⇒ Object
8
9
10
11
12
13
14
|
# File 'lib/markety/response/get_custom_object_response.rb', line 8
def custom_objects
@custom_objects ||= begin
custom_object_list.map do |custom_obj_hash|
CustomObject.from_marketo_hash(object_type_name, custom_obj_hash)
end
end
end
|