Class: Loaderio::Application
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#app_id ⇒ Object
readonly
Returns the value of attribute app_id.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Application
constructor
A new instance of Application.
- #verification_id ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(attributes) ⇒ Application
Returns a new instance of Application.
5 6 7 8 |
# File 'lib/loaderio/application.rb', line 5 def initialize(attributes) @app_id, @app, @status = attributes[:app_id], attributes[:app], attributes[:status] super end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
3 4 5 |
# File 'lib/loaderio/application.rb', line 3 def app @app end |
#app_id ⇒ Object (readonly)
Returns the value of attribute app_id.
3 4 5 |
# File 'lib/loaderio/application.rb', line 3 def app_id @app_id end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/loaderio/application.rb', line 3 def status @status end |
Class Method Details
.resource_name ⇒ Object
10 11 12 |
# File 'lib/loaderio/application.rb', line 10 def self.resource_name "apps" end |
.verify(app_id) ⇒ Object
14 15 16 |
# File 'lib/loaderio/application.rb', line 14 def self.verify(app_id) new(parse(Loaderio::Configuration.resource["#{resource_name}/#{app_id}/verify"].post({}))) end |
Instance Method Details
#verification_id ⇒ Object
18 19 20 |
# File 'lib/loaderio/application.rb', line 18 def verification_id "loaderio-#{app_id}" end |