Class: PRX::Model::Series

Inherits:
Base
  • Object
show all
Includes:
Representer::Full::SeriesRepresenter, Roar::JSON
Defined in:
lib/prx/model/series.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#id

Instance Method Summary collapse

Methods inherited from Base

#class_path_part, #find_by_id, #initialize, #request, request, #save

Constructor Details

This class inherits a constructor from PRX::Model::Base

Instance Attribute Details

#subscribableObject

Returns the value of attribute subscribable.



11
12
13
# File 'lib/prx/model/series.rb', line 11

def subscribable
  @subscribable
end

#titleObject

Returns the value of attribute title.



11
12
13
# File 'lib/prx/model/series.rb', line 11

def title
  @title
end

Instance Method Details

#pieces(refresh = false) ⇒ Object



13
14
15
16
17
18
# File 'lib/prx/model/series.rb', line 13

def pieces(refresh=false)
	@_pieces = nil if refresh
  opts = {:path=>"series/#{id}/pieces", :action=>:get}
	@_pieces ||= request(opts)
	@_pieces
end