Class: JSdk::Movie

Inherits:
Object
  • Object
show all
Defined in:
lib/j_sdk/movie.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#academyAwardNominationsObject (readonly)

Returns the value of attribute academyAwardNominations.



3
4
5
# File 'lib/j_sdk/movie.rb', line 3

def academyAwardNominations
  @academyAwardNominations
end

#academyAwardWinsObject (readonly)

Returns the value of attribute academyAwardWins.



3
4
5
# File 'lib/j_sdk/movie.rb', line 3

def academyAwardWins
  @academyAwardWins
end

#boxOfficeRevenueInMillionsObject (readonly)

Returns the value of attribute boxOfficeRevenueInMillions.



3
4
5
# File 'lib/j_sdk/movie.rb', line 3

def boxOfficeRevenueInMillions
  @boxOfficeRevenueInMillions
end

#budgetInMillionsObject (readonly)

Returns the value of attribute budgetInMillions.



3
4
5
# File 'lib/j_sdk/movie.rb', line 3

def budgetInMillions
  @budgetInMillions
end

#clientObject (readonly)

Returns the value of attribute client.



3
4
5
# File 'lib/j_sdk/movie.rb', line 3

def client
  @client
end

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/j_sdk/movie.rb', line 3

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/j_sdk/movie.rb', line 3

def name
  @name
end

#rottenTomatoesScoreObject (readonly)

Returns the value of attribute rottenTomatoesScore.



3
4
5
# File 'lib/j_sdk/movie.rb', line 3

def rottenTomatoesScore
  @rottenTomatoesScore
end

#runtimeInMinutesObject (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