Class: Rivendell::API::Cart
- Inherits:
-
Object
- Object
- Rivendell::API::Cart
- Defined in:
- lib/rivendell/api/cart.rb
Instance Attribute Summary collapse
-
#agency ⇒ Object
Returns the value of attribute agency.
-
#album ⇒ Object
Returns the value of attribute album.
-
#artist ⇒ Object
Returns the value of attribute artist.
-
#asyncronous ⇒ Object
Returns the value of attribute asyncronous.
-
#average_hook_length ⇒ Object
Returns the value of attribute average_hook_length.
-
#average_length ⇒ Object
Returns the value of attribute average_length.
-
#average_segue_lenth ⇒ Object
Returns the value of attribute average_segue_lenth.
-
#client ⇒ Object
Returns the value of attribute client.
-
#composer ⇒ Object
Returns the value of attribute composer.
-
#cut_quantity ⇒ Object
Returns the value of attribute cut_quantity.
-
#enforce_length ⇒ Object
Returns the value of attribute enforce_length.
-
#forced_length ⇒ Object
Returns the value of attribute forced_length.
-
#group_name ⇒ Object
(also: #group)
Returns the value of attribute group_name.
-
#label ⇒ Object
Returns the value of attribute label.
-
#last_cut_played ⇒ Object
Returns the value of attribute last_cut_played.
-
#length_deviation ⇒ Object
Returns the value of attribute length_deviation.
-
#metadata_datetime ⇒ Object
Returns the value of attribute metadata_datetime.
-
#number ⇒ Object
Returns the value of attribute number.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#publisher ⇒ Object
Returns the value of attribute publisher.
-
#title ⇒ Object
Returns the value of attribute title.
-
#type ⇒ Object
Returns the value of attribute type.
-
#usage_code ⇒ Object
Returns the value of attribute usage_code.
-
#user_defined ⇒ Object
Returns the value of attribute user_defined.
-
#validity ⇒ Object
Returns the value of attribute validity.
-
#year ⇒ Object
Returns the value of attribute year.
Instance Method Summary collapse
- #cut_list=(cuts) ⇒ Object
-
#initialize(attributes = {}) ⇒ Cart
constructor
A new instance of Cart.
- #macro_list=(cuts) ⇒ Object
- #method_missing(name, *arguments) ⇒ Object
Constructor Details
#initialize(attributes = {}) ⇒ Cart
Returns a new instance of Cart.
8 9 10 |
# File 'lib/rivendell/api/cart.rb', line 8 def initialize(attributes = {}) attributes.each { |k,v| send "#{k}=", v } end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *arguments) ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/rivendell/api/cart.rb', line 27 def method_missing(name, *arguments) underscored_name = name.to_s.underscore if respond_to?(underscored_name) send underscored_name, *arguments else super end end |
Instance Attribute Details
#agency ⇒ Object
Returns the value of attribute agency.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def agency @agency end |
#album ⇒ Object
Returns the value of attribute album.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def album @album end |
#artist ⇒ Object
Returns the value of attribute artist.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def artist @artist end |
#asyncronous ⇒ Object
Returns the value of attribute asyncronous.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def asyncronous @asyncronous end |
#average_hook_length ⇒ Object
Returns the value of attribute average_hook_length.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def average_hook_length @average_hook_length end |
#average_length ⇒ Object
Returns the value of attribute average_length.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def average_length @average_length end |
#average_segue_lenth ⇒ Object
Returns the value of attribute average_segue_lenth.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def average_segue_lenth @average_segue_lenth end |
#client ⇒ Object
Returns the value of attribute client.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def client @client end |
#composer ⇒ Object
Returns the value of attribute composer.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def composer @composer end |
#cut_quantity ⇒ Object
Returns the value of attribute cut_quantity.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def cut_quantity @cut_quantity end |
#enforce_length ⇒ Object
Returns the value of attribute enforce_length.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def enforce_length @enforce_length end |
#forced_length ⇒ Object
Returns the value of attribute forced_length.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def forced_length @forced_length end |
#group_name ⇒ Object Also known as: group
Returns the value of attribute group_name.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def group_name @group_name end |
#label ⇒ Object
Returns the value of attribute label.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def label @label end |
#last_cut_played ⇒ Object
Returns the value of attribute last_cut_played.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def last_cut_played @last_cut_played end |
#length_deviation ⇒ Object
Returns the value of attribute length_deviation.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def length_deviation @length_deviation end |
#metadata_datetime ⇒ Object
Returns the value of attribute metadata_datetime.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def @metadata_datetime end |
#number ⇒ Object
Returns the value of attribute number.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def number @number end |
#owner ⇒ Object
Returns the value of attribute owner.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def owner @owner end |
#publisher ⇒ Object
Returns the value of attribute publisher.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def publisher @publisher end |
#title ⇒ Object
Returns the value of attribute title.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def title @title end |
#type ⇒ Object
Returns the value of attribute type.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def type @type end |
#usage_code ⇒ Object
Returns the value of attribute usage_code.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def usage_code @usage_code end |
#user_defined ⇒ Object
Returns the value of attribute user_defined.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def user_defined @user_defined end |
#validity ⇒ Object
Returns the value of attribute validity.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def validity @validity end |
#year ⇒ Object
Returns the value of attribute year.
6 7 8 |
# File 'lib/rivendell/api/cart.rb', line 6 def year @year end |
Instance Method Details
#cut_list=(cuts) ⇒ Object
19 20 21 |
# File 'lib/rivendell/api/cart.rb', line 19 def cut_list=(cuts) end |
#macro_list=(cuts) ⇒ Object
23 24 25 |
# File 'lib/rivendell/api/cart.rb', line 23 def macro_list=(cuts) end |