Class: Rivendell::API::Cart

Inherits:
Object
  • Object
show all
Defined in:
lib/rivendell/api/cart.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#agencyObject

Returns the value of attribute agency.



6
7
8
# File 'lib/rivendell/api/cart.rb', line 6

def agency
  @agency
end

#albumObject

Returns the value of attribute album.



6
7
8
# File 'lib/rivendell/api/cart.rb', line 6

def album
  @album
end

#artistObject

Returns the value of attribute artist.



6
7
8
# File 'lib/rivendell/api/cart.rb', line 6

def artist
  @artist
end

#asyncronousObject

Returns the value of attribute asyncronous.



6
7
8
# File 'lib/rivendell/api/cart.rb', line 6

def asyncronous
  @asyncronous
end

#average_hook_lengthObject

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_lengthObject

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_lenthObject

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

#clientObject

Returns the value of attribute client.



6
7
8
# File 'lib/rivendell/api/cart.rb', line 6

def client
  @client
end

#composerObject

Returns the value of attribute composer.



6
7
8
# File 'lib/rivendell/api/cart.rb', line 6

def composer
  @composer
end

#cut_quantityObject

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_lengthObject

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_lengthObject

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_nameObject 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

#labelObject

Returns the value of attribute label.



6
7
8
# File 'lib/rivendell/api/cart.rb', line 6

def label
  @label
end

#last_cut_playedObject

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_deviationObject

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_datetimeObject

Returns the value of attribute metadata_datetime.



6
7
8
# File 'lib/rivendell/api/cart.rb', line 6

def 
  @metadata_datetime
end

#numberObject

Returns the value of attribute number.



6
7
8
# File 'lib/rivendell/api/cart.rb', line 6

def number
  @number
end

#ownerObject

Returns the value of attribute owner.



6
7
8
# File 'lib/rivendell/api/cart.rb', line 6

def owner
  @owner
end

#publisherObject

Returns the value of attribute publisher.



6
7
8
# File 'lib/rivendell/api/cart.rb', line 6

def publisher
  @publisher
end

#titleObject

Returns the value of attribute title.



6
7
8
# File 'lib/rivendell/api/cart.rb', line 6

def title
  @title
end

#typeObject

Returns the value of attribute type.



6
7
8
# File 'lib/rivendell/api/cart.rb', line 6

def type
  @type
end

#usage_codeObject

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_definedObject

Returns the value of attribute user_defined.



6
7
8
# File 'lib/rivendell/api/cart.rb', line 6

def user_defined
  @user_defined
end

#validityObject

Returns the value of attribute validity.



6
7
8
# File 'lib/rivendell/api/cart.rb', line 6

def validity
  @validity
end

#yearObject

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