Class: YuiRestClient::Widgets::Label
- Defined in:
- lib/yui_rest_client/widgets/label.rb
Overview
Class representing a Label UI. It can be YLabel, YLabel_Heading
Instance Method Summary collapse
-
#heading? ⇒ Boolean
Returns if label is a heading being represented in bold in the UI Gets value from ‘is_heading’ parameter in JSON representation of YLabel_Heading.
-
#text ⇒ String
Returns text value for the label.
Methods inherited from Base
#action, #collect_all, #debug_label, #enabled?, #exists?, #initialize, #property
Methods included from YuiRestClient::Waitable
Constructor Details
This class inherits a constructor from YuiRestClient::Widgets::Base
Instance Method Details
#heading? ⇒ Boolean
Returns if label is a heading being represented in bold in the UI Gets value from ‘is_heading’ parameter in JSON representation of YLabel_Heading.
20 21 22 23 |
# File 'lib/yui_rest_client/widgets/label.rb', line 20 def heading? heading_prop = property(:is_heading) !heading_prop.nil? && heading_prop == true end |
#text ⇒ String
Returns text value for the label.
36 37 38 |
# File 'lib/yui_rest_client/widgets/label.rb', line 36 def text property(:text) end |