Class: 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.



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

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.



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

def date_posted
  @date_posted
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#summaryObject

Returns the value of attribute summary.



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

def summary
  @summary
end

#urlObject

Returns the value of attribute url.



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

def url
  @url
end