Class: Nineflats::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/nineflats-api/base.rb

Direct Known Subclasses

Booking, Calendar, Client, Photo, Place, Prices, Review, User

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#raw_dataObject

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_keyObject



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


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