Class: AsposeSlidesCloud::LineFormat
- Inherits:
-
BaseObject
- Object
- BaseObject
- AsposeSlidesCloud::LineFormat
- Defined in:
- lib/aspose_slides_cloud/models/line_format.rb
Instance Attribute Summary collapse
-
#alignment ⇒ Object
Returns the value of attribute alignment.
-
#begin_arrow_head ⇒ Object
Returns the value of attribute begin_arrow_head.
-
#cap_style ⇒ Object
Returns the value of attribute cap_style.
-
#custom_dash_pattern ⇒ Object
Returns the value of attribute custom_dash_pattern.
-
#dash_style ⇒ Object
Returns the value of attribute dash_style.
-
#end_arrow_head ⇒ Object
Returns the value of attribute end_arrow_head.
-
#fill_format ⇒ Object
Returns the value of attribute fill_format.
-
#join_style ⇒ Object
Returns the value of attribute join_style.
-
#miter_limit ⇒ Object
Returns the value of attribute miter_limit.
-
#style ⇒ Object
Returns the value of attribute style.
-
#width ⇒ Object
Returns the value of attribute width.
Class Method Summary collapse
-
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ LineFormat
constructor
A new instance of LineFormat.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ LineFormat
Returns a new instance of LineFormat.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 63 def initialize(attributes = {}) return if !attributes.is_a?(Hash) || attributes.empty? # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'Alignment'] self.alignment = attributes[:'Alignment'] end if attributes[:'CapStyle'] self.cap_style = attributes[:'CapStyle'] end if attributes[:'DashStyle'] self.dash_style = attributes[:'DashStyle'] end if attributes[:'JoinStyle'] self.join_style = attributes[:'JoinStyle'] end if attributes[:'Style'] self.style = attributes[:'Style'] end if attributes[:'BeginArrowHead'] self.begin_arrow_head = attributes[:'BeginArrowHead'] end if attributes[:'EndArrowHead'] self.end_arrow_head = attributes[:'EndArrowHead'] end if attributes[:'CustomDashPattern'] self.custom_dash_pattern = attributes[:'CustomDashPattern'] end if attributes[:'FillFormat'] self.fill_format = attributes[:'FillFormat'] end if attributes[:'MiterLimit'] self.miter_limit = attributes[:'MiterLimit'] end if attributes[:'Width'] self.width = attributes[:'Width'] end end |
Instance Attribute Details
#alignment ⇒ Object
Returns the value of attribute alignment.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 4 def alignment @alignment end |
#begin_arrow_head ⇒ Object
Returns the value of attribute begin_arrow_head.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 4 def begin_arrow_head @begin_arrow_head end |
#cap_style ⇒ Object
Returns the value of attribute cap_style.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 4 def cap_style @cap_style end |
#custom_dash_pattern ⇒ Object
Returns the value of attribute custom_dash_pattern.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 4 def custom_dash_pattern @custom_dash_pattern end |
#dash_style ⇒ Object
Returns the value of attribute dash_style.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 4 def dash_style @dash_style end |
#end_arrow_head ⇒ Object
Returns the value of attribute end_arrow_head.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 4 def end_arrow_head @end_arrow_head end |
#fill_format ⇒ Object
Returns the value of attribute fill_format.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 4 def fill_format @fill_format end |
#join_style ⇒ Object
Returns the value of attribute join_style.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 4 def join_style @join_style end |
#miter_limit ⇒ Object
Returns the value of attribute miter_limit.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 4 def miter_limit @miter_limit end |
#style ⇒ Object
Returns the value of attribute style.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 4 def style @style end |
#width ⇒ Object
Returns the value of attribute width.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 4 def width @width end |
Class Method Details
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 6 def self.attribute_map { # :'alignment' => :'Alignment', # :'cap_style' => :'CapStyle', # :'dash_style' => :'DashStyle', # :'join_style' => :'JoinStyle', # :'style' => :'Style', # :'begin_arrow_head' => :'BeginArrowHead', # :'end_arrow_head' => :'EndArrowHead', # :'custom_dash_pattern' => :'CustomDashPattern', # :'fill_format' => :'FillFormat', # :'miter_limit' => :'MiterLimit', # :'width' => :'Width' } end |
.swagger_types ⇒ Object
attribute type
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 46 def self.swagger_types { :'alignment' => :'String', :'cap_style' => :'String', :'dash_style' => :'String', :'join_style' => :'String', :'style' => :'String', :'begin_arrow_head' => :'ArrowHeadProperties', :'end_arrow_head' => :'ArrowHeadProperties', :'custom_dash_pattern' => :'CustomDashPattern', :'fill_format' => :'FillFormat', :'miter_limit' => :'Float', :'width' => :'Float' } end |