Class: PRX::Model::Series
- Includes:
- Representer::Full::SeriesRepresenter, Roar::JSON
- Defined in:
- lib/prx/model/series.rb
Instance Attribute Summary collapse
-
#subscribable ⇒ Object
Returns the value of attribute subscribable.
-
#title ⇒ Object
Returns the value of attribute title.
Attributes inherited from Base
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
#subscribable ⇒ Object
Returns the value of attribute subscribable.
11 12 13 |
# File 'lib/prx/model/series.rb', line 11 def subscribable @subscribable end |
#title ⇒ Object
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 |