Class: Optimizely::Project
- Inherits:
-
Object
- Object
- Optimizely::Project
- Defined in:
- lib/optimizely/project.rb
Instance Attribute Summary collapse
-
#account_id ⇒ Object
readonly
Returns the value of attribute account_id.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#project_name ⇒ Object
readonly
Returns the value of attribute project_name.
-
#project_status ⇒ Object
readonly
Returns the value of attribute project_status.
Instance Method Summary collapse
- #[](x) ⇒ Object
-
#initialize(json) ⇒ Project
constructor
A new instance of Project.
Constructor Details
#initialize(json) ⇒ Project
Returns a new instance of Project.
6 7 8 9 10 11 12 |
# File 'lib/optimizely/project.rb', line 6 def initialize(json) @json = json @project_name = json['project_name'] @project_status = json['project_status'] @id = json['id'] @account_id = json['account_id'] end |
Instance Attribute Details
#account_id ⇒ Object (readonly)
Returns the value of attribute account_id.
4 5 6 |
# File 'lib/optimizely/project.rb', line 4 def account_id @account_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/optimizely/project.rb', line 4 def id @id end |
#project_name ⇒ Object (readonly)
Returns the value of attribute project_name.
4 5 6 |
# File 'lib/optimizely/project.rb', line 4 def project_name @project_name end |
#project_status ⇒ Object (readonly)
Returns the value of attribute project_status.
4 5 6 |
# File 'lib/optimizely/project.rb', line 4 def project_status @project_status end |
Instance Method Details
#[](x) ⇒ Object
14 15 16 |
# File 'lib/optimizely/project.rb', line 14 def [](x) return @json[x] end |