Class: Rubyoverflow::ApiSite
- Inherits:
-
Object
- Object
- Rubyoverflow::ApiSite
- Defined in:
- lib/rubyoverflow/apiSite.rb
Instance Attribute Summary collapse
-
#aliases ⇒ Object
readonly
Returns the value of attribute aliases.
-
#api_endpoint ⇒ Object
readonly
Returns the value of attribute api_endpoint.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#icon_url ⇒ Object
readonly
Returns the value of attribute icon_url.
-
#logo_url ⇒ Object
readonly
Returns the value of attribute logo_url.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#site_url ⇒ Object
readonly
Returns the value of attribute site_url.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#styling ⇒ Object
readonly
Returns the value of attribute styling.
Instance Method Summary collapse
-
#initialize(hash, url = '') ⇒ ApiSite
constructor
A new instance of ApiSite.
Constructor Details
#initialize(hash, url = '') ⇒ ApiSite
Returns a new instance of ApiSite.
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/rubyoverflow/apiSite.rb', line 5 def initialize(hash,url='') dash = ApiSiteDash.new hash @name = dash.name @logo_url = dash.logo_url @api_endpoint = dash.api_endpoint @site_url = dash.site_url @description = dash.description @icon_url = dash.icon_url @state = dash.state @styling = Styling.new dash.styling if dash.styling @aliases = dash.aliases end |
Instance Attribute Details
#aliases ⇒ Object (readonly)
Returns the value of attribute aliases.
3 4 5 |
# File 'lib/rubyoverflow/apiSite.rb', line 3 def aliases @aliases end |
#api_endpoint ⇒ Object (readonly)
Returns the value of attribute api_endpoint.
3 4 5 |
# File 'lib/rubyoverflow/apiSite.rb', line 3 def api_endpoint @api_endpoint end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
3 4 5 |
# File 'lib/rubyoverflow/apiSite.rb', line 3 def description @description end |
#icon_url ⇒ Object (readonly)
Returns the value of attribute icon_url.
3 4 5 |
# File 'lib/rubyoverflow/apiSite.rb', line 3 def icon_url @icon_url end |
#logo_url ⇒ Object (readonly)
Returns the value of attribute logo_url.
3 4 5 |
# File 'lib/rubyoverflow/apiSite.rb', line 3 def logo_url @logo_url end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/rubyoverflow/apiSite.rb', line 3 def name @name end |
#site_url ⇒ Object (readonly)
Returns the value of attribute site_url.
3 4 5 |
# File 'lib/rubyoverflow/apiSite.rb', line 3 def site_url @site_url end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
3 4 5 |
# File 'lib/rubyoverflow/apiSite.rb', line 3 def state @state end |
#styling ⇒ Object (readonly)
Returns the value of attribute styling.
3 4 5 |
# File 'lib/rubyoverflow/apiSite.rb', line 3 def styling @styling end |