Class: Tamiyo::Yaml::YamlSource::Prototype
- Inherits:
-
Struct
- Object
- Struct
- Tamiyo::Yaml::YamlSource::Prototype
- Defined in:
- lib/tamiyo/yaml/yaml_source.rb
Instance Attribute Summary collapse
-
#colors ⇒ Object
Returns the value of attribute colors.
-
#cost ⇒ Object
Returns the value of attribute cost.
-
#loyalty ⇒ Object
Returns the value of attribute loyalty.
-
#name ⇒ Object
Returns the value of attribute name.
-
#picture_url ⇒ Object
Returns the value of attribute picture_url.
-
#played_tapped ⇒ Object
Returns the value of attribute played_tapped.
-
#pt ⇒ Object
Returns the value of attribute pt.
-
#table_row ⇒ Object
Returns the value of attribute table_row.
-
#text ⇒ Object
Returns the value of attribute text.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #build_card ⇒ Object
-
#initialize ⇒ Prototype
constructor
A new instance of Prototype.
Constructor Details
#initialize ⇒ Prototype
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
#colors ⇒ Object
Returns the value of attribute colors
68 69 70 |
# File 'lib/tamiyo/yaml/yaml_source.rb', line 68 def colors @colors end |
#cost ⇒ Object
Returns the value of attribute cost
68 69 70 |
# File 'lib/tamiyo/yaml/yaml_source.rb', line 68 def cost @cost end |
#loyalty ⇒ Object
Returns the value of attribute loyalty
68 69 70 |
# File 'lib/tamiyo/yaml/yaml_source.rb', line 68 def loyalty @loyalty end |
#name ⇒ Object
Returns the value of attribute name
68 69 70 |
# File 'lib/tamiyo/yaml/yaml_source.rb', line 68 def name @name end |
#picture_url ⇒ Object
Returns the value of attribute picture_url
68 69 70 |
# File 'lib/tamiyo/yaml/yaml_source.rb', line 68 def picture_url @picture_url end |
#played_tapped ⇒ Object
Returns the value of attribute played_tapped
68 69 70 |
# File 'lib/tamiyo/yaml/yaml_source.rb', line 68 def played_tapped @played_tapped end |
#pt ⇒ Object
Returns the value of attribute pt
68 69 70 |
# File 'lib/tamiyo/yaml/yaml_source.rb', line 68 def pt @pt end |
#table_row ⇒ Object
Returns the value of attribute table_row
68 69 70 |
# File 'lib/tamiyo/yaml/yaml_source.rb', line 68 def table_row @table_row end |
#text ⇒ Object
Returns the value of attribute text
68 69 70 |
# File 'lib/tamiyo/yaml/yaml_source.rb', line 68 def text @text end |
#type ⇒ Object
Returns the value of attribute type
68 69 70 |
# File 'lib/tamiyo/yaml/yaml_source.rb', line 68 def type @type end |
Instance Method Details
#build_card ⇒ Object
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 |