Class: SimpleConnect::Responses::VerifyResponse::EventFlow::Template
- Inherits:
-
Object
- Object
- SimpleConnect::Responses::VerifyResponse::EventFlow::Template
- Defined in:
- lib/simple_connect/responses/verify_response.rb
Overview
The template linked to this event flow (nil if none assigned).
Instance Attribute Summary collapse
-
#language ⇒ Object
readonly
Returns the value of attribute language.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
- #approved? ⇒ Boolean
-
#initialize(json) ⇒ Template
constructor
A new instance of Template.
Constructor Details
#initialize(json) ⇒ Template
Returns a new instance of Template.
63 64 65 66 67 68 |
# File 'lib/simple_connect/responses/verify_response.rb', line 63 def initialize(json) json = {} unless json.is_a?(Hash) @name = json["name"] @language = json["language"] @status = json["status"] end |
Instance Attribute Details
#language ⇒ Object (readonly)
Returns the value of attribute language.
61 62 63 |
# File 'lib/simple_connect/responses/verify_response.rb', line 61 def language @language end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
61 62 63 |
# File 'lib/simple_connect/responses/verify_response.rb', line 61 def name @name end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
61 62 63 |
# File 'lib/simple_connect/responses/verify_response.rb', line 61 def status @status end |
Instance Method Details
#approved? ⇒ Boolean
70 71 72 |
# File 'lib/simple_connect/responses/verify_response.rb', line 70 def approved? @status == "approved" end |