Class: Tamiyo::Yaml::YamlSource::Prototype

Inherits:
Struct
  • Object
show all
Defined in:
lib/tamiyo/yaml/yaml_source.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePrototype

Returns a new instance of Prototype.



70
71
72
73
74
# File 'lib/tamiyo/yaml/yaml_source.rb', line 70

def initialize
  self.colors = []
  self.played_tapped = false
  self.picture_url = ''
end

Instance Attribute Details

#colorsObject

Returns the value of attribute colors

Returns:

  • (Object)

    the current value of colors



68
69
70
# File 'lib/tamiyo/yaml/yaml_source.rb', line 68

def colors
  @colors
end

#costObject

Returns the value of attribute cost

Returns:

  • (Object)

    the current value of cost



68
69
70
# File 'lib/tamiyo/yaml/yaml_source.rb', line 68

def cost
  @cost
end

#loyaltyObject

Returns the value of attribute loyalty

Returns:

  • (Object)

    the current value of loyalty



68
69
70
# File 'lib/tamiyo/yaml/yaml_source.rb', line 68

def loyalty
  @loyalty
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



68
69
70
# File 'lib/tamiyo/yaml/yaml_source.rb', line 68

def name
  @name
end

#picture_urlObject

Returns the value of attribute picture_url

Returns:

  • (Object)

    the current value of picture_url



68
69
70
# File 'lib/tamiyo/yaml/yaml_source.rb', line 68

def picture_url
  @picture_url
end

#played_tappedObject

Returns the value of attribute played_tapped

Returns:

  • (Object)

    the current value of played_tapped



68
69
70
# File 'lib/tamiyo/yaml/yaml_source.rb', line 68

def played_tapped
  @played_tapped
end

#ptObject

Returns the value of attribute pt

Returns:

  • (Object)

    the current value of pt



68
69
70
# File 'lib/tamiyo/yaml/yaml_source.rb', line 68

def pt
  @pt
end

#table_rowObject

Returns the value of attribute table_row

Returns:

  • (Object)

    the current value of table_row



68
69
70
# File 'lib/tamiyo/yaml/yaml_source.rb', line 68

def table_row
  @table_row
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



68
69
70
# File 'lib/tamiyo/yaml/yaml_source.rb', line 68

def text
  @text
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



68
69
70
# File 'lib/tamiyo/yaml/yaml_source.rb', line 68

def type
  @type
end

Instance Method Details

#build_cardObject



76
77
78
79
# File 'lib/tamiyo/yaml/yaml_source.rb', line 76

def build_card
  Card.new name, cost, colors, type, text, pt, loyalty,
           table_row, played_tapped, picture_url
end