Class: Echonest::Blog

Inherits:
Object
  • Object
show all
Defined in:
lib/echonest-ruby-api/blog.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Blog

Returns a new instance of Blog.



5
6
7
8
9
10
# File 'lib/echonest-ruby-api/blog.rb', line 5

def initialize(options = {})
  @name = options[:name]
  @summary = options[:summary]
  @url = options[:url]
  @date_posted = options[:date_posted]
end

Instance Attribute Details

#date_postedObject

Returns the value of attribute date_posted.



4
5
6
# File 'lib/echonest-ruby-api/blog.rb', line 4

def date_posted
  @date_posted
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/echonest-ruby-api/blog.rb', line 4

def name
  @name
end

#summaryObject

Returns the value of attribute summary.



4
5
6
# File 'lib/echonest-ruby-api/blog.rb', line 4

def summary
  @summary
end

#urlObject

Returns the value of attribute url.



4
5
6
# File 'lib/echonest-ruby-api/blog.rb', line 4

def url
  @url
end