Class: Optimizely::Audience
- Inherits:
-
Object
- Object
- Optimizely::Audience
- Defined in:
- lib/optimizely/audience.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#project_id ⇒ Object
readonly
Returns the value of attribute project_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ Audience
constructor
A new instance of Audience.
Constructor Details
#initialize(json) ⇒ Audience
Returns a new instance of Audience.
6 7 8 9 10 11 |
# File 'lib/optimizely/audience.rb', line 6 def initialize(json) @id = json['id'] @name = json['name'] @project_id = json['project_id'] @description = json['description'] end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
4 5 6 |
# File 'lib/optimizely/audience.rb', line 4 def description @description end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/optimizely/audience.rb', line 4 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/optimizely/audience.rb', line 4 def name @name end |
#project_id ⇒ Object (readonly)
Returns the value of attribute project_id.
4 5 6 |
# File 'lib/optimizely/audience.rb', line 4 def project_id @project_id end |