Class: Unleash::Admin::Feature

Inherits:
Object
  • Object
show all
Defined in:
lib/unleash/admin/feature.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, description, project, enabled, stale, favorite, impression_data, created_at, archived_at) ⇒ Feature

Returns a new instance of Feature.



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/unleash/admin/feature.rb', line 8

def initialize(name, description, project, enabled, stale, favorite, impression_data, created_at, archived_at)
  @name = name
  @description = description
  @project = project
  @enabled = enabled
  @stale = stale
  @favorite = favorite
  @impression_data = impression_data
  @created_at = created_at
  @archived_at = archived_at
end

Instance Attribute Details

#archived_atObject

Returns the value of attribute archived_at.



6
7
8
# File 'lib/unleash/admin/feature.rb', line 6

def archived_at
  @archived_at
end

#created_atObject

Returns the value of attribute created_at.



6
7
8
# File 'lib/unleash/admin/feature.rb', line 6

def created_at
  @created_at
end

#descriptionObject

Returns the value of attribute description.



6
7
8
# File 'lib/unleash/admin/feature.rb', line 6

def description
  @description
end

#enabledObject

Returns the value of attribute enabled.



6
7
8
# File 'lib/unleash/admin/feature.rb', line 6

def enabled
  @enabled
end

#favoriteObject

Returns the value of attribute favorite.



6
7
8
# File 'lib/unleash/admin/feature.rb', line 6

def favorite
  @favorite
end

#impression_dataObject

Returns the value of attribute impression_data.



6
7
8
# File 'lib/unleash/admin/feature.rb', line 6

def impression_data
  @impression_data
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/unleash/admin/feature.rb', line 6

def name
  @name
end

#projectObject

Returns the value of attribute project.



6
7
8
# File 'lib/unleash/admin/feature.rb', line 6

def project
  @project
end

#staleObject

Returns the value of attribute stale.



6
7
8
# File 'lib/unleash/admin/feature.rb', line 6

def stale
  @stale
end