Class: Flickrie::Instance

Inherits:
Object
  • Object
show all
Includes:
ApiMethods
Defined in:
lib/flickrie/instance.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ApiMethods

#add_media_to_set, #check_upload_tickets, #comment_media, #create_set, #delete_media, #delete_media_comment, #delete_set, #edit_media_comment, #edit_set_media, #edit_set_metadata, #find_user_by_email, #find_user_by_username, #get_licenses, #get_media_comments, #get_media_context, #get_media_counts, #get_media_from_contacts, #get_media_from_set, #get_media_from_user, #get_media_info, #get_media_not_in_set, #get_media_of_user, #get_media_with_geo_data, #get_media_without_geo_data, #get_methods, #get_photo_exif, #get_photo_favorites, #get_photo_permissions, #get_photo_sizes, #get_photos_from_contacts, #get_photos_from_set, #get_photos_from_user, #get_photos_not_in_set, #get_photos_of_user, #get_photos_with_geo_data, #get_photos_without_geo_data, #get_public_media_from_contacts, #get_public_media_from_user, #get_public_photos_from_contacts, #get_public_photos_from_user, #get_public_videos_from_contacts, #get_public_videos_from_user, #get_recent_media, #get_recent_photos, #get_recent_videos, #get_recently_commented_media_from_contacts, #get_recently_commented_photos_from_contacts, #get_recently_commented_videos_from_contacts, #get_recently_updated_media, #get_recently_updated_photos, #get_recently_updated_videos, #get_set_context, #get_set_info, #get_sets_from_user, #get_untagged_media, #get_untagged_photos, #get_untagged_videos, #get_upload_status, #get_user_info, #get_video_exif, #get_video_favorites, #get_video_permissions, #get_video_sizes, #get_videos_from_contacts, #get_videos_from_set, #get_videos_from_user, #get_videos_not_in_set, #get_videos_of_user, #get_videos_with_geo_data, #get_videos_without_geo_data, #order_sets, #remove_media_from_set, #reorder_media_in_set, #replace, #rotate_media, #search_media, #search_photos, #search_videos, #set_media_content_type, #set_media_dates, #set_media_license, #set_media_meta, #set_media_permissions, #set_media_safety_level, #set_media_tags, #set_set_primary_media, #tag_media, #test_login, #untag_media, #upload

Methods included from Deprecatable

#deprecated_alias

Methods included from Callable

#client, #upload_client

Constructor Details

#initialize(access_token, access_secret) ⇒ Instance

Initializes a new authenticated instance. Example:

flickrie = Flickrie::Instance.new("ACCESS_TOKEN", "ACCESS_SECRET")
flickrie.find_user_by_email("...")


18
19
20
# File 'lib/flickrie/instance.rb', line 18

def initialize(access_token, access_secret)
  @access_token, @access_secret = access_token, access_secret
end

Instance Attribute Details

#access_secretObject (readonly)

Returns the value of attribute access_secret.



3
4
5
# File 'lib/flickrie/instance.rb', line 3

def access_secret
  @access_secret
end

#access_tokenObject (readonly)

Returns the value of attribute access_token.



3
4
5
# File 'lib/flickrie/instance.rb', line 3

def access_token
  @access_token
end

Class Method Details

.delegate(*attributes) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/flickrie/instance.rb', line 5

def self.delegate(*attributes)
  attributes.each do |attribute|
    define_method(attribute) do
      Flickrie.send(attribute)
    end
  end
end