mirror of
https://github.com/nov/fb_graph2
synced 2023-03-27 23:22:15 -04:00
"identifier" as an alias of "id" for easy fb_graph -> fb_graph2 migration
and remove unnecessary attribute registration close #35
This commit is contained in:
parent
a63b4dbd92
commit
ac2f43b9b3
3 changed files with 3 additions and 2 deletions
|
@ -16,7 +16,7 @@ module FbGraph2
|
|||
|
||||
register_attributes(
|
||||
raw: [
|
||||
:id, :android_key_hash, :app_domains, :auth_dialog_data_help_url, :auth_dialog_headline,
|
||||
:android_key_hash, :app_domains, :auth_dialog_data_help_url, :auth_dialog_headline,
|
||||
:auth_dialog_perms_explanation, :auth_referral_enabled, :auth_referral_extended_perms,
|
||||
:auth_referral_friend_perms, :auth_referral_user_perms, :canvas_fluid_height, :canvas_fluid_width,
|
||||
:canvas_url, :category, :company, :contact_email, :creator_uid, :daily_active_users, :daily_active_users_rank,
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
module FbGraph2
|
||||
class Node
|
||||
attr_accessor :id, :access_token, :raw_attributes
|
||||
alias_method :identifier, :id
|
||||
|
||||
def self.inherited(klass)
|
||||
klass.send :include, AttributeAssigner
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
module FbGraph2
|
||||
class TaggedProfile < Node
|
||||
register_attributes(
|
||||
raw: [:id, :name, :type, :offset, :length],
|
||||
raw: [:name, :type, :offset, :length],
|
||||
custom: [:object]
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue