Class: JSdk::Movie
- Inherits:
-
Object
- Object
- JSdk::Movie
- Defined in:
- lib/j_sdk/movie.rb
Instance Attribute Summary collapse
-
#academyAwardNominations ⇒ Object
readonly
Returns the value of attribute academyAwardNominations.
-
#academyAwardWins ⇒ Object
readonly
Returns the value of attribute academyAwardWins.
-
#boxOfficeRevenueInMillions ⇒ Object
readonly
Returns the value of attribute boxOfficeRevenueInMillions.
-
#budgetInMillions ⇒ Object
readonly
Returns the value of attribute budgetInMillions.
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#rottenTomatoesScore ⇒ Object
readonly
Returns the value of attribute rottenTomatoesScore.
-
#runtimeInMinutes ⇒ Object
readonly
Returns the value of attribute runtimeInMinutes.
Instance Method Summary collapse
- #get_quotes(limit = 10, page = 0) ⇒ Object
-
#initialize(id, name, runtimeInMinutes, budgetInMillions, boxOfficeRevenueInMillions, academyAwardNominations, academyAwardWins, rottenTomatoesScore, client) ⇒ Movie
constructor
A new instance of Movie.
Constructor Details
#initialize(id, name, runtimeInMinutes, budgetInMillions, boxOfficeRevenueInMillions, academyAwardNominations, academyAwardWins, rottenTomatoesScore, client) ⇒ Movie
Returns a new instance of Movie.
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/j_sdk/movie.rb', line 5 def initialize(id, name, runtimeInMinutes, budgetInMillions, boxOfficeRevenueInMillions, academyAwardNominations, academyAwardWins, rottenTomatoesScore, client) @id = id @name = name @runtimeInMinutes = runtimeInMinutes @budgetInMillions = budgetInMillions @boxOfficeRevenueInMillions = boxOfficeRevenueInMillions @academyAwardNominations = academyAwardNominations @academyAwardWins = academyAwardWins @rottenTomatoesScore = rottenTomatoesScore @client = client end |
Instance Attribute Details
#academyAwardNominations ⇒ Object (readonly)
Returns the value of attribute academyAwardNominations.
3 4 5 |
# File 'lib/j_sdk/movie.rb', line 3 def academyAwardNominations @academyAwardNominations end |
#academyAwardWins ⇒ Object (readonly)
Returns the value of attribute academyAwardWins.
3 4 5 |
# File 'lib/j_sdk/movie.rb', line 3 def academyAwardWins @academyAwardWins end |
#boxOfficeRevenueInMillions ⇒ Object (readonly)
Returns the value of attribute boxOfficeRevenueInMillions.
3 4 5 |
# File 'lib/j_sdk/movie.rb', line 3 def boxOfficeRevenueInMillions @boxOfficeRevenueInMillions end |
#budgetInMillions ⇒ Object (readonly)
Returns the value of attribute budgetInMillions.
3 4 5 |
# File 'lib/j_sdk/movie.rb', line 3 def budgetInMillions @budgetInMillions end |
#client ⇒ Object (readonly)
Returns the value of attribute client.
3 4 5 |
# File 'lib/j_sdk/movie.rb', line 3 def client @client end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/j_sdk/movie.rb', line 3 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/j_sdk/movie.rb', line 3 def name @name end |
#rottenTomatoesScore ⇒ Object (readonly)
Returns the value of attribute rottenTomatoesScore.
3 4 5 |
# File 'lib/j_sdk/movie.rb', line 3 def rottenTomatoesScore @rottenTomatoesScore end |
#runtimeInMinutes ⇒ Object (readonly)
Returns the value of attribute runtimeInMinutes.
3 4 5 |
# File 'lib/j_sdk/movie.rb', line 3 def runtimeInMinutes @runtimeInMinutes end |
Instance Method Details
#get_quotes(limit = 10, page = 0) ⇒ Object
17 18 19 |
# File 'lib/j_sdk/movie.rb', line 17 def get_quotes(limit=10, page=0) @client.get_quotes(self.id, limit, page) end |