Class: Rdmm::Resources::GenreResource

Inherits:
BaseResource show all
Defined in:
lib/rdmm/resources/genre_resource.rb

Instance Attribute Summary

Attributes inherited from BaseResource

#source

Instance Method Summary collapse

Methods inherited from BaseResource

#initialize

Constructor Details

This class inherits a constructor from Rdmm::Resources::BaseResource

Instance Method Details

#idInteger?

Returns:

  • (Integer, nil)


5
6
7
# File 'lib/rdmm/resources/genre_resource.rb', line 5

def id
  source["genre_id"]
end

#list_urlString?

Returns:

  • (String, nil)


10
11
12
# File 'lib/rdmm/resources/genre_resource.rb', line 10

def list_url
  source["list_url"]
end

#nameString?

Returns:

  • (String, nil)


15
16
17
# File 'lib/rdmm/resources/genre_resource.rb', line 15

def name
  source["name"]
end

#rubyString?

Returns:

  • (String, nil)


20
21
22
# File 'lib/rdmm/resources/genre_resource.rb', line 20

def ruby
  source["ruby"]
end