Class: Optimizely::Audience

Inherits:
Object
  • Object
show all
Defined in:
lib/optimizely/audience.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject (readonly)

Returns the value of attribute description.



4
5
6
# File 'lib/optimizely/audience.rb', line 4

def description
  @description
end

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/optimizely/audience.rb', line 4

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/optimizely/audience.rb', line 4

def name
  @name
end

#project_idObject (readonly)

Returns the value of attribute project_id.



4
5
6
# File 'lib/optimizely/audience.rb', line 4

def project_id
  @project_id
end