Class: PersonaApi::Inquiry
- Inherits:
-
Object
- Object
- Object
- PersonaApi::Inquiry
show all
- Defined in:
- lib/persona_api/objects/inquiry.rb
Instance Method Summary
collapse
Methods inherited from Object
#initialize, #method_missing, #respond_to_missing?
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class PersonaApi::Object
Instance Method Details
3
4
5
6
|
# File 'lib/persona_api/objects/inquiry.rb', line 3
def account
relationships.account.data.id
end
|
#completed? ⇒ Boolean
8
9
10
|
# File 'lib/persona_api/objects/inquiry.rb', line 8
def completed?
attributes.completed_at.nil? ? false : true
end
|
#expired? ⇒ Boolean
12
13
14
|
# File 'lib/persona_api/objects/inquiry.rb', line 12
def expired?
attributes.expired_at.nil? ? false : true
end
|
#failed? ⇒ Boolean
16
17
18
|
# File 'lib/persona_api/objects/inquiry.rb', line 16
def failed?
attributes.failed_at.nil? ? false : true
end
|
#redacted? ⇒ Boolean
20
21
22
|
# File 'lib/persona_api/objects/inquiry.rb', line 20
def redacted?
attributes.redacted_at.nil? ? false : true
end
|
#started? ⇒ Boolean
24
25
26
|
# File 'lib/persona_api/objects/inquiry.rb', line 24
def started?
attributes.started_at.nil? ? false: true
end
|