Class: Hubspot::Object
- Inherits:
-
Object
show all
- Defined in:
- lib/hubspot/object.rb
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Instance Attribute Details
Returns the value of attribute result.
11
12
13
|
# File 'lib/hubspot/object.rb', line 11
def result
@result
end
|
Instance Method Details
29
30
31
|
# File 'lib/hubspot/object.rb', line 29
def call
raise NotImplementedError unless defined?(super)
end
|
#constructor ⇒ Object
12
13
14
15
|
# File 'lib/hubspot/object.rb', line 12
def constructor
@result = call
self
end
|
25
26
27
|
# File 'lib/hubspot/object.rb', line 25
def errors
@errors ||= Errors.new
end
|
#failure? ⇒ Boolean
21
22
23
|
# File 'lib/hubspot/object.rb', line 21
def failure?
errors.any?
end
|
#success? ⇒ Boolean
17
18
19
|
# File 'lib/hubspot/object.rb', line 17
def success?
!failure?
end
|