Class: Readypulse::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/readypulse/client.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeClient

Returns a new instance of Client.



11
12
# File 'lib/readypulse/client.rb', line 11

def initialize
end

Instance Attribute Details

#album_idObject

Returns the value of attribute album_id.



9
10
11
# File 'lib/readypulse/client.rb', line 9

def album_id
  @album_id
end

Class Method Details

.instanceObject



5
6
7
# File 'lib/readypulse/client.rb', line 5

def self.instance
  @@client ||= Client.new
end

Instance Method Details

#to_album(album_id: @album_id) ⇒ Object



14
15
16
17
# File 'lib/readypulse/client.rb', line 14

def to_album(album_id: @album_id)
  validate_album_id(album_id)
  parsed_album_response
end

#to_images(album_id: @album_id) ⇒ Object



19
20
21
22
23
# File 'lib/readypulse/client.rb', line 19

def to_images(album_id: @album_id)
  validate_album_id(album_id)
  parsed_response_content
  # parsed_response_content.first
end