Class: Google::Apis::PlusV1::Activity
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PlusV1::Activity
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/plus_v1/classes.rb,
 generated/google/apis/plus_v1/representations.rb,
 generated/google/apis/plus_v1/representations.rb
Defined Under Namespace
Classes: Actor, Object, Provider
Instance Attribute Summary collapse
- 
  
    
      #access  ⇒ Google::Apis::PlusV1::Acl 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Identifies who has access to see this activity. 
- 
  
    
      #actor  ⇒ Google::Apis::PlusV1::Activity::Actor 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The person who performed this activity. 
- 
  
    
      #address  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Street address where this activity occurred. 
- 
  
    
      #annotation  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Additional content added by the person who shared this activity, applicable only when resharing an activity. 
- 
  
    
      #crosspost_source  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    If this activity is a crosspost from another system, this property specifies the ID of the original activity. 
- 
  
    
      #etag  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    ETag of this response for caching purposes. 
- 
  
    
      #geocode  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Latitude and longitude where this activity occurred. 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of this activity. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Identifies this resource as an activity. 
- 
  
    
      #location  ⇒ Google::Apis::PlusV1::Place 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The location where this activity occurred. 
- 
  
    
      #object  ⇒ Google::Apis::PlusV1::Activity::Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The object of this activity. 
- 
  
    
      #place_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    ID of the place where this activity occurred. 
- 
  
    
      #place_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Name of the place where this activity occurred. 
- 
  
    
      #provider  ⇒ Google::Apis::PlusV1::Activity::Provider 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The service provider that initially published this activity. 
- 
  
    
      #published  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The time at which this activity was initially published. 
- 
  
    
      #radius  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Radius, in meters, of the region where this activity occurred, centered at the latitude and longitude identified in geocode. 
- 
  
    
      #title  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Title of this activity. 
- 
  
    
      #updated  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The time at which this activity was last updated. 
- 
  
    
      #url  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The link to this activity. 
- 
  
    
      #verb  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This activity's verb, which indicates the action that was performed. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Activity 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Activity. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Activity
Returns a new instance of Activity
| 169 170 171 | # File 'generated/google/apis/plus_v1/classes.rb', line 169 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#access ⇒ Google::Apis::PlusV1::Acl
Identifies who has access to see this activity.
Corresponds to the JSON property access
| 63 64 65 | # File 'generated/google/apis/plus_v1/classes.rb', line 63 def access @access end | 
#actor ⇒ Google::Apis::PlusV1::Activity::Actor
The person who performed this activity.
Corresponds to the JSON property actor
| 68 69 70 | # File 'generated/google/apis/plus_v1/classes.rb', line 68 def actor @actor end | 
#address ⇒ String
Street address where this activity occurred.
Corresponds to the JSON property address
| 73 74 75 | # File 'generated/google/apis/plus_v1/classes.rb', line 73 def address @address end | 
#annotation ⇒ String
Additional content added by the person who shared this activity, applicable
only when resharing an activity.
Corresponds to the JSON property annotation
| 79 80 81 | # File 'generated/google/apis/plus_v1/classes.rb', line 79 def annotation @annotation end | 
#crosspost_source ⇒ String
If this activity is a crosspost from another system, this property specifies
the ID of the original activity.
Corresponds to the JSON property crosspostSource
| 85 86 87 | # File 'generated/google/apis/plus_v1/classes.rb', line 85 def crosspost_source @crosspost_source end | 
#etag ⇒ String
ETag of this response for caching purposes.
Corresponds to the JSON property etag
| 90 91 92 | # File 'generated/google/apis/plus_v1/classes.rb', line 90 def etag @etag end | 
#geocode ⇒ String
Latitude and longitude where this activity occurred. Format is latitude
followed by longitude, space separated.
Corresponds to the JSON property geocode
| 96 97 98 | # File 'generated/google/apis/plus_v1/classes.rb', line 96 def geocode @geocode end | 
#id ⇒ String
The ID of this activity.
Corresponds to the JSON property id
| 101 102 103 | # File 'generated/google/apis/plus_v1/classes.rb', line 101 def id @id end | 
#kind ⇒ String
Identifies this resource as an activity. Value: "plus#activity".
Corresponds to the JSON property kind
| 106 107 108 | # File 'generated/google/apis/plus_v1/classes.rb', line 106 def kind @kind end | 
#location ⇒ Google::Apis::PlusV1::Place
The location where this activity occurred.
Corresponds to the JSON property location
| 111 112 113 | # File 'generated/google/apis/plus_v1/classes.rb', line 111 def location @location end | 
#object ⇒ Google::Apis::PlusV1::Activity::Object
The object of this activity.
Corresponds to the JSON property object
| 116 117 118 | # File 'generated/google/apis/plus_v1/classes.rb', line 116 def object @object end | 
#place_id ⇒ String
ID of the place where this activity occurred.
Corresponds to the JSON property placeId
| 121 122 123 | # File 'generated/google/apis/plus_v1/classes.rb', line 121 def place_id @place_id end | 
#place_name ⇒ String
Name of the place where this activity occurred.
Corresponds to the JSON property placeName
| 126 127 128 | # File 'generated/google/apis/plus_v1/classes.rb', line 126 def place_name @place_name end | 
#provider ⇒ Google::Apis::PlusV1::Activity::Provider
The service provider that initially published this activity.
Corresponds to the JSON property provider
| 131 132 133 | # File 'generated/google/apis/plus_v1/classes.rb', line 131 def provider @provider end | 
#published ⇒ DateTime
The time at which this activity was initially published. Formatted as an RFC
3339 timestamp.
Corresponds to the JSON property published
| 137 138 139 | # File 'generated/google/apis/plus_v1/classes.rb', line 137 def published @published end | 
#radius ⇒ String
Radius, in meters, of the region where this activity occurred, centered at the
latitude and longitude identified in geocode.
Corresponds to the JSON property radius
| 143 144 145 | # File 'generated/google/apis/plus_v1/classes.rb', line 143 def radius @radius end | 
#title ⇒ String
Title of this activity.
Corresponds to the JSON property title
| 148 149 150 | # File 'generated/google/apis/plus_v1/classes.rb', line 148 def title @title end | 
#updated ⇒ DateTime
The time at which this activity was last updated. Formatted as an RFC 3339
timestamp.
Corresponds to the JSON property updated
| 154 155 156 | # File 'generated/google/apis/plus_v1/classes.rb', line 154 def updated @updated end | 
#url ⇒ String
The link to this activity.
Corresponds to the JSON property url
| 159 160 161 | # File 'generated/google/apis/plus_v1/classes.rb', line 159 def url @url end | 
#verb ⇒ String
This activity's verb, which indicates the action that was performed. Possible values include, but are not limited to, the following values:
- "post" - Publish content to the stream.
- "share" - Reshare an activity.
Corresponds to the JSON property verb
| 167 168 169 | # File 'generated/google/apis/plus_v1/classes.rb', line 167 def verb @verb end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | # File 'generated/google/apis/plus_v1/classes.rb', line 174 def update!(**args) @access = args[:access] if args.key?(:access) @actor = args[:actor] if args.key?(:actor) @address = args[:address] if args.key?(:address) @annotation = args[:annotation] if args.key?(:annotation) @crosspost_source = args[:crosspost_source] if args.key?(:crosspost_source) @etag = args[:etag] if args.key?(:etag) @geocode = args[:geocode] if args.key?(:geocode) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @location = args[:location] if args.key?(:location) @object = args[:object] if args.key?(:object) @place_id = args[:place_id] if args.key?(:place_id) @place_name = args[:place_name] if args.key?(:place_name) @provider = args[:provider] if args.key?(:provider) @published = args[:published] if args.key?(:published) @radius = args[:radius] if args.key?(:radius) @title = args[:title] if args.key?(:title) @updated = args[:updated] if args.key?(:updated) @url = args[:url] if args.key?(:url) @verb = args[:verb] if args.key?(:verb) end |