Class: Rubyoverflow::ApiSite

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyoverflow/apiSite.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#aliasesObject (readonly)

Returns the value of attribute aliases.



3
4
5
# File 'lib/rubyoverflow/apiSite.rb', line 3

def aliases
  @aliases
end

#api_endpointObject (readonly)

Returns the value of attribute api_endpoint.



3
4
5
# File 'lib/rubyoverflow/apiSite.rb', line 3

def api_endpoint
  @api_endpoint
end

#descriptionObject (readonly)

Returns the value of attribute description.



3
4
5
# File 'lib/rubyoverflow/apiSite.rb', line 3

def description
  @description
end

#icon_urlObject (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_urlObject (readonly)

Returns the value of attribute logo_url.



3
4
5
# File 'lib/rubyoverflow/apiSite.rb', line 3

def logo_url
  @logo_url
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/rubyoverflow/apiSite.rb', line 3

def name
  @name
end

#site_urlObject (readonly)

Returns the value of attribute site_url.



3
4
5
# File 'lib/rubyoverflow/apiSite.rb', line 3

def site_url
  @site_url
end

#stateObject (readonly)

Returns the value of attribute state.



3
4
5
# File 'lib/rubyoverflow/apiSite.rb', line 3

def state
  @state
end

#stylingObject (readonly)

Returns the value of attribute styling.



3
4
5
# File 'lib/rubyoverflow/apiSite.rb', line 3

def styling
  @styling
end