Class: Nineflats::Base
- Inherits:
-
Object
show all
- Defined in:
- lib/nineflats-api/base.rb
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Attribute Details
#raw_data ⇒ Object
Returns the value of attribute raw_data.
3
4
5
|
# File 'lib/nineflats-api/base.rb', line 3
def raw_data
@raw_data
end
|
Class Method Details
.client_app_key ⇒ Object
5
6
7
|
# File 'lib/nineflats-api/base.rb', line 5
def self.client_app_key
@@client_app_key
end
|
.client_app_key=(key) ⇒ Object
9
10
11
|
# File 'lib/nineflats-api/base.rb', line 9
def self.client_app_key=(key)
@@client_app_key = key
end
|
.object_link(name, array) ⇒ Object
13
14
15
16
17
|
# File 'lib/nineflats-api/base.rb', line 13
def self.object_link(name, array)
array.select{ |link|
link["rel"] == name
}.first["href"]
end
|