Class: ThreeScale::AuthorizeResponse
- Defined in:
- lib/3scale/authorize_response.rb
Defined Under Namespace
Classes: UsageReport
Instance Attribute Summary collapse
-
#app_key ⇒ Object
Returns the value of attribute app_key.
-
#plan ⇒ Object
Returns the value of attribute plan.
-
#redirect_url ⇒ Object
Returns the value of attribute redirect_url.
-
#service_id ⇒ Object
Returns the value of attribute service_id.
-
#usage_reports ⇒ Object
readonly
Returns the value of attribute usage_reports.
Attributes inherited from Response
Instance Method Summary collapse
- #add_usage_report(options) ⇒ Object
-
#initialize ⇒ AuthorizeResponse
constructor
A new instance of AuthorizeResponse.
Methods inherited from Response
Constructor Details
#initialize ⇒ AuthorizeResponse
Returns a new instance of AuthorizeResponse.
5 6 7 8 |
# File 'lib/3scale/authorize_response.rb', line 5 def initialize super @usage_reports = [] end |
Instance Attribute Details
#app_key ⇒ Object
Returns the value of attribute app_key.
11 12 13 |
# File 'lib/3scale/authorize_response.rb', line 11 def app_key @app_key end |
#plan ⇒ Object
Returns the value of attribute plan.
10 11 12 |
# File 'lib/3scale/authorize_response.rb', line 10 def plan @plan end |
#redirect_url ⇒ Object
Returns the value of attribute redirect_url.
12 13 14 |
# File 'lib/3scale/authorize_response.rb', line 12 def redirect_url @redirect_url end |
#service_id ⇒ Object
Returns the value of attribute service_id.
13 14 15 |
# File 'lib/3scale/authorize_response.rb', line 13 def service_id @service_id end |
#usage_reports ⇒ Object (readonly)
Returns the value of attribute usage_reports.
40 41 42 |
# File 'lib/3scale/authorize_response.rb', line 40 def usage_reports @usage_reports end |
Instance Method Details
#add_usage_report(options) ⇒ Object
42 43 44 |
# File 'lib/3scale/authorize_response.rb', line 42 def add_usage_report() @usage_reports << UsageReport.new() end |