Class: Readypulse::Client
- Inherits:
-
Object
- Object
- Readypulse::Client
- Defined in:
- lib/readypulse/client.rb
Instance Attribute Summary collapse
-
#album_id ⇒ Object
Returns the value of attribute album_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Client
constructor
A new instance of Client.
- #to_album(album_id: @album_id) ⇒ Object
- #to_images(album_id: @album_id) ⇒ Object
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
11 12 |
# File 'lib/readypulse/client.rb', line 11 def initialize end |
Instance Attribute Details
#album_id ⇒ Object
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
.instance ⇒ Object
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 |