Class: AudioVision::Category

Inherits:
Object
  • Object
show all
Defined in:
lib/audio_vision/category.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Category

Returns a new instance of Category.



12
13
14
15
16
17
18
# File 'lib/audio_vision/category.rb', line 12

def initialize(attributes={})
  @id           = attributes["id"]
  @title        = attributes["title"]
  @slug         = attributes["slug"]
  @description  = attributes["description"]
  @public_url   = attributes["public_url"]
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'lib/audio_vision/category.rb', line 4

def description
  @description
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/audio_vision/category.rb', line 4

def id
  @id
end

#public_urlObject

Returns the value of attribute public_url.



4
5
6
# File 'lib/audio_vision/category.rb', line 4

def public_url
  @public_url
end

#slugObject

Returns the value of attribute slug.



4
5
6
# File 'lib/audio_vision/category.rb', line 4

def slug
  @slug
end

#titleObject

Returns the value of attribute title.



4
5
6
# File 'lib/audio_vision/category.rb', line 4

def title
  @title
end